From 35ac656a0a768b3db73524c1a6d8ad1b96b9c0f1 Mon Sep 17 00:00:00 2001 From: Asdine El Hrychy Date: Mon, 27 Jun 2022 17:29:05 +0800 Subject: [PATCH] Fix driver test --- db_test.go | 1 + driver/example_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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) }