From d84849917633ea1d3dd451d3be9459a4d9a547e7 Mon Sep 17 00:00:00 2001 From: Matt Moyer Date: Fri, 5 Mar 2021 08:45:25 -0600 Subject: [PATCH] Close this HTTP response body in TestE2EFullIntegration. Signed-off-by: Matt Moyer --- test/integration/e2e_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/e2e_test.go b/test/integration/e2e_test.go index f13fc823..57056850 100644 --- a/test/integration/e2e_test.go +++ b/test/integration/e2e_test.go @@ -297,12 +297,13 @@ func TestE2EFullIntegration(t *testing.T) { } req, err := http.NewRequestWithContext(ctx, http.MethodGet, restConfig.Host, nil) require.NoError(t, err) - resp, err := httpClient.Do(req) //nolint:bodyclose + resp, err := httpClient.Do(req) if err != nil { t.Logf("could not connect to the API server at %q: %v", restConfig.Host, err) return false } t.Logf("got %d response from API server at %q", resp.StatusCode, restConfig.Host) + require.NoError(t, resp.Body.Close()) return resp.StatusCode < 500 }, 5*time.Minute, 2*time.Second)