summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--interface_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/interface_test.go b/interface_test.go
index 68f1dc2..f8fda98 100644
--- a/interface_test.go
+++ b/interface_test.go
@@ -53,7 +53,11 @@ func testConnectionHandle[H gsql.ConnectionHandle](t *testing.T, conn H) {
})
// test GSQLPrepare() + Exec()
- _, err := execQuery(ctx, conn, `CREATE TABLE people (id BIGSERIAL PRIMARY KEY, name TEXT NOT NULL)`, nil)
+ _, err := execQuery(ctx, conn, `DROP TABLE IF EXISTS people`, nil)
+ if !assert.ErrEqual(t, err, nil) {
+ t.FailNow()
+ }
+ _, err = execQuery(ctx, conn, `CREATE TABLE people (id BIGSERIAL PRIMARY KEY, name TEXT NOT NULL)`, nil)
if !assert.ErrEqual(t, err, nil) {
t.FailNow()
}