diff --git a/exp/addons/internal/controllers/clusterresourceset_controller_test.go b/exp/addons/internal/controllers/clusterresourceset_controller_test.go index da67a5391023..e5663d1ba976 100644 --- a/exp/addons/internal/controllers/clusterresourceset_controller_test.go +++ b/exp/addons/internal/controllers/clusterresourceset_controller_test.go @@ -996,7 +996,7 @@ metadata: }, timeout).Should(BeTrue()) t.Log("Create Kubernetes API Server Service") - g.Expect(env.Delete(ctx, fakeService)).Should(Succeed()) + g.Expect(env.CleanupAndWait(ctx, fakeService)).Should(Succeed()) kubernetesAPIServerService.ResourceVersion = "" g.Expect(env.Create(ctx, kubernetesAPIServerService)).Should(Succeed())