From a98f4f23f50c4bb56a65397d1704fdd0dec6acb0 Mon Sep 17 00:00:00 2001 From: ubombar Date: Thu, 7 Dec 2023 15:16:47 +0100 Subject: [PATCH] Add sleep statement to selective deployment test --- .../apps/v1alpha1/selectivedeployment/controller_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/controller/apps/v1alpha1/selectivedeployment/controller_test.go b/pkg/controller/apps/v1alpha1/selectivedeployment/controller_test.go index 75c24d74..4cd64346 100644 --- a/pkg/controller/apps/v1alpha1/selectivedeployment/controller_test.go +++ b/pkg/controller/apps/v1alpha1/selectivedeployment/controller_test.go @@ -600,6 +600,7 @@ func TestCreate(t *testing.T) { log.Println(workload) } sdCopy, err := edgenetclientset.AppsV1alpha1().SelectiveDeployments("create").Get(context.TODO(), sdObj.GetName(), metav1.GetOptions{}) + time.Sleep(time.Millisecond * 500) t.Run("status", func(t *testing.T) { util.OK(t, err) util.Equals(t, success, sdCopy.Status.State)