From c3b7d210377adac4f8e93db5a4ce8cd72d66e6f2 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Fri, 5 Mar 2021 08:39:48 -0600 Subject: [PATCH] Be less picky about what error code is returned here. The thing we're waiting for is mostly that DNS is resolving, the ELB is listening, and connections are making it to the proxy. Signed-off-by: Matt Moyer --- test/integration/e2e_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/e2e_test.go b/test/integration/e2e_test.go index 3e950a25..f13fc823 100644 --- a/test/integration/e2e_test.go +++ b/test/integration/e2e_test.go @@ -303,8 +303,8 @@ func TestE2EFullIntegration(t *testing.T) { return false } t.Logf("got %d response from API server at %q", resp.StatusCode, restConfig.Host) - return resp.StatusCode == 200 || resp.StatusCode == 403 - }, 5*time.Minute, time.Second) + return resp.StatusCode < 500 + }, 5*time.Minute, 2*time.Second) // Expect the CLI to output a list of namespaces in JSON format. t.Logf("waiting for kubectl to output namespace list JSON")