Skip to content

Commit

Permalink
Fix driver test
Browse files Browse the repository at this point in the history
  • Loading branch information
asdine committed Jun 27, 2022
1 parent 3f32bcb commit 35ac656
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion driver/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 35ac656

Please sign in to comment.