diff --git a/backend/v3/storage/database/repository/id_provider_test.go b/backend/v3/storage/database/repository/id_provider_test.go index c5e9c41e06..e52b78bdfd 100644 --- a/backend/v3/storage/database/repository/id_provider_test.go +++ b/backend/v3/storage/database/repository/id_provider_test.go @@ -1661,13 +1661,13 @@ func TestListIDProvider(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { + ctx := context.WithoutCancel(t.Context()) + t.Cleanup(func() { _, err := pool.Exec(ctx, "DELETE FROM zitadel.identity_providers") require.NoError(t, err) }) - ctx := context.WithoutCancel(t.Context()) - idps := tt.testFunc(ctx, t) // check idp values