From 558596d95f5a60b178deebad217510fffe9dae66 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 10 Mar 2024 20:12:27 -0400 Subject: Attempt to fix a couple flaky tests --- internal/storage/db_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/storage') diff --git a/internal/storage/db_test.go b/internal/storage/db_test.go index 6dc1e14..949ab52 100644 --- a/internal/storage/db_test.go +++ b/internal/storage/db_test.go @@ -51,6 +51,7 @@ func TestTableExists_DoesExist(t *testing.T) { bolttest.DropTable(t, db, "tmp") assert.Nil(t, db.Close()) }) + bolttest.DropTable(t, db, "tmp") _, err = db.Exec("CREATE TABLE tmp(id int primary key);") assert.Nil(t, err) @@ -82,6 +83,7 @@ func TestQueryPlaceholders(t *testing.T) { bolttest.DropTable(t, db, "tmp") assert.Nil(t, db.Close()) }) + bolttest.DropTable(t, db, "tmp") _, err = db.Exec(`CREATE TABLE tmp(id int primary key);`) assert.Nil(t, err) _, err = db.Exec(`INSERT INTO tmp(id) VALUES(1);`) -- cgit v1.2.3