From 42e3cb545d6d619df3c825a820c9bbfb9c71fbb1 Mon Sep 17 00:00:00 2001 From: odubajDT Date: Wed, 8 Mar 2023 09:28:39 +0100 Subject: [PATCH] fix flakyness Signed-off-by: odubajDT --- operator/test/component/workloadinstancecontroller_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/test/component/workloadinstancecontroller_test.go b/operator/test/component/workloadinstancecontroller_test.go index edb2b673ce..b474a631d0 100644 --- a/operator/test/component/workloadinstancecontroller_test.go +++ b/operator/test/component/workloadinstancecontroller_test.go @@ -92,7 +92,6 @@ var _ = Describe("KeptnWorkloadInstanceController", Ordered, func() { }) BeforeEach(func() { // list var here they will be copied for every spec - appName = names.SimpleNameGenerator.GenerateName("test-app-") namespace = "default" // namespaces are not deleted in the api so be careful // when creating you can use ignoreAlreadyExists(err error) version = "1.0.0" @@ -105,6 +104,7 @@ var _ = Describe("KeptnWorkloadInstanceController", Ordered, func() { Context("with a new AppVersions CRD", func() { BeforeEach(func() { + appName = names.SimpleNameGenerator.GenerateName("test-app-") appVersion = createAppVersionInCluster(appName, namespace, version) })