From 2f5a5bd31521818098b9f03a094148e26ae420f3 Mon Sep 17 00:00:00 2001 From: Muhammad Adil Ghaffar Date: Tue, 5 Nov 2024 14:15:59 +0200 Subject: [PATCH] Fixing TestClusterResourceSetReconciler flaky test Signed-off-by: Muhammad Adil Ghaffar --- .../internal/controllers/clusterresourceset_controller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())