From e4e77bd1981ba5592538c336200a5e0947960459 Mon Sep 17 00:00:00 2001 From: Chris Crone Date: Mon, 7 Sep 2020 13:43:34 +0200 Subject: [PATCH] e2e.aci: Retry flaky HTTP GET requests Signed-off-by: Chris Crone --- tests/aci-e2e/e2e-aci_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/aci-e2e/e2e-aci_test.go b/tests/aci-e2e/e2e-aci_test.go index c16afeb74..5a5243fa3 100644 --- a/tests/aci-e2e/e2e-aci_test.go +++ b/tests/aci-e2e/e2e-aci_test.go @@ -198,7 +198,7 @@ func TestContainerRunVolume(t *testing.T) { }) t.Run("http get", func(t *testing.T) { - r, err := http.Get(endpoint) + r, err := HTTPGetWithRetry(endpoint, 3) assert.NilError(t, err) assert.Equal(t, r.StatusCode, http.StatusOK) b, err := ioutil.ReadAll(r.Body) @@ -434,7 +434,7 @@ func TestComposeUpUpdate(t *testing.T) { assert.Assert(t, is.Len(containerInspect.Ports, 1)) endpoint := fmt.Sprintf("http://%s:%d", containerInspect.Ports[0].HostIP, containerInspect.Ports[0].HostPort) - r, err := http.Get(endpoint + "/words/noun") + r, err := HTTPGetWithRetry(endpoint+"/words/noun", 3) assert.NilError(t, err) assert.Equal(t, r.StatusCode, http.StatusOK) b, err := ioutil.ReadAll(r.Body)