aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-03-10 20:12:27 -0400
committerEugene Triguba <eugenetriguba@gmail.com>2024-03-10 20:12:27 -0400
commit558596d95f5a60b178deebad217510fffe9dae66 (patch)
tree2db15709463e28b1eec37e190d2a33a881ee8673
parentRelease v0.5.0 (diff)
downloadcli-558596d95f5a60b178deebad217510fffe9dae66.zip
Attempt to fix a couple flaky tests
-rw-r--r--internal/storage/db_test.go2
1 files changed, 2 insertions, 0 deletions
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);`)