From 7cee342873dd2848d105105a16f53517df21126d Mon Sep 17 00:00:00 2001 From: "kumahq[bot]" <110050114+kumahq[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 07:50:08 +0000 Subject: [PATCH] test(e2e): fix race in sync + available services test (backport of #10563) (#11651) test(e2e): fix race in sync + available services test (#10563) Only part of this test was adjusted in #10426 Signed-off-by: Mike Beaumont Co-authored-by: Mike Beaumont --- test/e2e_env/multizone/sync/sync.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e_env/multizone/sync/sync.go b/test/e2e_env/multizone/sync/sync.go index a20e48050f96..4726d4e79dd2 100644 --- a/test/e2e_env/multizone/sync/sync.go +++ b/test/e2e_env/multizone/sync/sync.go @@ -43,7 +43,9 @@ func Sync() { Eventually(func(g Gomega) { out, err := multizone.Global.GetKumactlOptions().RunKumactlAndGetOutput("inspect", "zones") g.Expect(err).ToNot(HaveOccurred()) - g.Expect(strings.Count(out, "Online")).To(Equal(4)) + // Some tests create their own Zones that may or may not + // be run simultaneously + g.Expect(strings.Count(out, "Online")).To(BeNumerically(">=", 4)) }, "30s", "1s").Should(Succeed()) })