Skip to content

Commit

Permalink
test(e2e): fix race in sync + available services test (backport of #1…
Browse files Browse the repository at this point in the history
…0563) (#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 <mjboamail@gmail.com>
Co-authored-by: Mike Beaumont <mjboamail@gmail.com>
  • Loading branch information
kumahq[bot] and michaelbeaumont authored Oct 4, 2024
1 parent 9ee8b09 commit 7cee342
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e_env/multizone/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
})

Expand Down

0 comments on commit 7cee342

Please sign in to comment.