diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-10 20:12:27 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-03-10 20:12:27 -0400 |
| commit | 558596d95f5a60b178deebad217510fffe9dae66 (patch) | |
| tree | 2db15709463e28b1eec37e190d2a33a881ee8673 | |
| parent | Release v0.5.0 (diff) | |
| download | cli-558596d95f5a60b178deebad217510fffe9dae66.zip | |
Attempt to fix a couple flaky tests
| -rw-r--r-- | internal/storage/db_test.go | 2 |
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);`) |