Skip to content

Commit 1bc99f6

Browse files
Add DeleteAndWait function for ClusterClass flaky test
Signed-off-by: killianmuldoon <[email protected]>
1 parent 0ba4a7a commit 1bc99f6

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)