Adjusting timeout

This commit is contained in:
Ryan Baxter
2021-09-21 15:44:43 -04:00
parent c9eef5ffde
commit c19c95c925

View File

@@ -142,7 +142,7 @@ public class LoadBalancerIT {
});
// Sometimes the NGINX ingress takes a bit to catch up and realize the service is
// available and we get a 503, we just need to wait a bit
await().timeout(Duration.ofSeconds(120))
await().atLeast(Duration.ofSeconds(300))
.until(() -> rest.getForEntity("http://localhost:80/loadbalancer-it/servicea", String.class)
.getStatusCode().is2xxSuccessful());
Map<String, Object> result = rest.getForObject("http://localhost:80/loadbalancer-it/servicea", Map.class);