From 9ab534b201fb6662f2b43a4d5ff6bf0f93bce3b6 Mon Sep 17 00:00:00 2001 From: Christian Schlotter Date: Tue, 27 Feb 2024 17:15:58 +0100 Subject: [PATCH] controllers: add 3 second timeout to assertion in test --- controllers/servicediscovery_controller_suite_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/servicediscovery_controller_suite_test.go b/controllers/servicediscovery_controller_suite_test.go index 3b131c2450..cf4322b161 100644 --- a/controllers/servicediscovery_controller_suite_test.go +++ b/controllers/servicediscovery_controller_suite_test.go @@ -142,7 +142,7 @@ func assertHeadlessSvcWithUpdatedVIPEndpoints(ctx context.Context, guestClient c key := client.ObjectKey{Namespace: namespace, Name: name} Expect(guestClient.Get(ctx, key, headlessEndpoints)).Should(Succeed()) return headlessEndpoints.Subsets[0].Addresses[0].IP - }).Should(Equal(testSupervisorAPIServerVIP)) + }, time.Second*3).Should(Equal(testSupervisorAPIServerVIP)) Expect(headlessEndpoints.Subsets[0].Ports[0].Port).To(Equal(int32(supervisorAPIServerPort))) }