diff --git a/db_test.go b/db_test.go index e0a8f3150..33532cdb4 100644 --- a/db_test.go +++ b/db_test.go @@ -147,6 +147,7 @@ func TestOpen(t *testing.T) { func TestQueryDocument(t *testing.T) { db, err := genji.Open(":memory:") assert.NoError(t, err) + require.NoError(t, err) tx, err := db.Begin(true) assert.NoError(t, err) diff --git a/driver/example_test.go b/driver/example_test.go index 07cfb6292..5b9d3fa4c 100644 --- a/driver/example_test.go +++ b/driver/example_test.go @@ -21,7 +21,7 @@ func Example() { } defer db.Close() - _, err = db.Exec("CREATE TABLE IF NOT EXISTS user") + _, err = db.Exec("CREATE TABLE IF NOT EXISTS user (name, ...)") if err != nil { log.Fatal(err) }