test: Ensure the upgrade test LB remains available
In some tests we are seeing it pass, then start failing again. Try
for five successes to reduce the chance that ELB issues don't break
us.
@@ -96,7 +96,10 @@ func (t *UpgradeTest) Setup(f *framework.Framework) {
// Hit it once before considering ourselves ready
ginkgo.By("hitting pods through the service's LoadBalancer")
timeout := service.LoadBalancerLagTimeoutAWS
+ // require five passing requests to continue (in case the SLB becomes available and then degrades)
+ for i := 0; i < 5; i++ {
service.TestReachableHTTP(tcpIngressIP, svcPort, timeout)
+ }
t.jig = jig
t.tcpService = tcpService
