Chore: CleanupTestDB in unifed storage tests (#112223)

This commit is contained in:
Ryan McKinley
2025-10-09 22:22:59 +03:00
committed by GitHub
parent e6e58c3a56
commit 6af50482a1
@@ -69,6 +69,7 @@ func TestMain(m *testing.M) {
func TestIntegrationStorageServer(t *testing.T) {
testutil.SkipIntegrationTestInShortMode(t)
t.Cleanup(db.CleanupTestDB)
unitest.RunStorageServerTest(t, func(ctx context.Context) resource.StorageBackend {
return newTestBackend(t, true, 0)
@@ -78,6 +79,7 @@ func TestIntegrationStorageServer(t *testing.T) {
// TestStorageBackend is a test for the StorageBackend interface.
func TestIntegrationSQLStorageBackend(t *testing.T) {
testutil.SkipIntegrationTestInShortMode(t)
t.Cleanup(db.CleanupTestDB)
t.Run("IsHA (polling notifier)", func(t *testing.T) {
unitest.RunStorageBackendTest(t, func(ctx context.Context) resource.StorageBackend {