From cd5c5c6b7705bf77ee39fe65f5fb5d843f5770e1 Mon Sep 17 00:00:00 2001 From: Lubron Zhan Date: Thu, 2 May 2024 15:05:12 -0700 Subject: [PATCH] Fix flaky test Signed-off-by: Lubron Zhan --- controllers/cluster/cluster_intg_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/cluster/cluster_intg_test.go b/controllers/cluster/cluster_intg_test.go index 8c83fd19..43258b53 100644 --- a/controllers/cluster/cluster_intg_test.go +++ b/controllers/cluster/cluster_intg_test.go @@ -153,6 +153,9 @@ func intgTestEnsureClusterHAProvider() { if err != nil { return false } + if len(service.Status.LoadBalancer.Ingress) == 0 { + return false + } if service.Status.LoadBalancer.Ingress[0].IP != "10.1.2.1" { return false }