Skip to content

Commit cf62fe9

Browse files
authored
Merge pull request #7589 from killianmuldoon/fix-flaky-clusterclass-delete
🐛 Add CleanupAndWait call for flaky ClusterClass test
2 parents d7c77b5 + 1bc99f6 commit cf62fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/webhooks/test/clusterclass_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func TestClusterClassWebhook_Delete_MultipleExistingClusters(t *testing.T) {
446446
defer func() {
447447
// Delete each of the clusters.
448448
for _, c := range clusters {
449-
g.Expect(env.Delete(ctx, c)).To(Succeed())
449+
g.Expect(env.CleanupAndWait(ctx, c)).To(Succeed())
450450
}
451451

452452
// Delete the ClusterClasses in the API server.

0 commit comments

Comments
 (0)