From c21b3631d7f588d427e6cf9f428dab30e18041fa Mon Sep 17 00:00:00 2001 From: vardhaman22 Date: Fri, 14 Feb 2025 10:36:47 +0530 Subject: [PATCH] fix recorderror unit test --- controller/aks-cluster-config-handler_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller/aks-cluster-config-handler_test.go b/controller/aks-cluster-config-handler_test.go index e2259e2b..a55776eb 100644 --- a/controller/aks-cluster-config-handler_test.go +++ b/controller/aks-cluster-config-handler_test.go @@ -1000,6 +1000,10 @@ var _ = Describe("recordError", func() { Expect(cl.Create(ctx, aksConfig)).To(Succeed()) }) + AfterEach(func() { + Expect(test.CleanupAndWait(ctx, cl, aksConfig)).To(Succeed()) + }) + It("should return same conflict error when onChange returns a conflict error", func() { oldOutput := logrus.StandardLogger().Out buf := bytes.Buffer{}