Commit c1a7a38c authored by gwenn's avatar gwenn

Ignore error while checking QueryOnly status to make Travis happy.

parent a9c8e3d9
...@@ -5,8 +5,10 @@ ...@@ -5,8 +5,10 @@
package sqlite_test package sqlite_test
import ( import (
"github.com/bmizerany/assert" "io"
"testing" "testing"
"github.com/bmizerany/assert"
) )
func TestIntegrityCheck(t *testing.T) { func TestIntegrityCheck(t *testing.T) {
...@@ -85,6 +87,9 @@ func TestQueryOnly(t *testing.T) { ...@@ -85,6 +87,9 @@ func TestQueryOnly(t *testing.T) {
db := open(t) db := open(t)
defer checkClose(db, t) defer checkClose(db, t)
mode, err := db.QueryOnly("") mode, err := db.QueryOnly("")
if err == io.EOF {
return // not supported
}
checkNoError(t, err, "Error reading query_only status of database: %s") checkNoError(t, err, "Error reading query_only status of database: %s")
assert.T(t, !mode, "expecting query_only to be false by default") assert.T(t, !mode, "expecting query_only to be false by default")
err = db.SetQueryOnly("", true) err = db.SetQueryOnly("", true)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment