Skip to content

Commit

Permalink
ci: fix cluster check in sequential test
Browse files Browse the repository at this point in the history
In sequential test the cluster takes more time to appear.

Signed-off-by: Loic Devulder <[email protected]>
  • Loading branch information
ldevulder committed Sep 25, 2023
1 parent c1e290c commit 47cdf79
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,12 @@ func CheckClusterState(ns, cluster string) {
}

// Check that the cluster is in Ready state (this means that it has been created)
clusterStatus, err := kubectl.Run("get", "cluster",
"--namespace", ns, cluster,
"-o", "jsonpath={.status.ready}")
Expect(err).To(Not(HaveOccurred()))
Expect(clusterStatus).To(Equal("true"))
Eventually(func() string {
status, _ := kubectl.Run("get", "cluster",
"--namespace", ns, cluster,
"-o", "jsonpath={.status.ready}")
return status
}, tools.SetTimeout(2*time.Duration(usedNodes)*time.Minute), 10*time.Second).Should(Equal("true"))

// Check that all needed conditions are in the good state
for _, s := range states {
Expand Down

0 comments on commit 47cdf79

Please sign in to comment.