diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-09-25 05:28:52 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2020-09-25 05:28:52 +0300 |
commit | 003e7145a5bf6faa8991531d77cc4abff4869eda (patch) | |
tree | c437e880bd6f35bba4202ee0b91799de7df1a668 /acceptance_test.go | |
parent | 6230f6525fbe6cb1a75e650185062070621d82a4 (diff) |
Apply suggestions from review
Diffstat (limited to 'acceptance_test.go')
-rw-r--r-- | acceptance_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/acceptance_test.go b/acceptance_test.go index ff1b22d1..02c71f1d 100644 --- a/acceptance_test.go +++ b/acceptance_test.go @@ -1994,11 +1994,10 @@ func TestZipServing(t *testing.T) { t.Run(name, func(t *testing.T) { response, err := GetPageFromListener(t, httpListener, "zip.gitlab.io", tt.urlSuffix) require.NoError(t, err) + defer response.Body.Close() require.Equal(t, tt.expectedStatusCode, response.StatusCode) if tt.expectedStatusCode == http.StatusOK || tt.expectedStatusCode == http.StatusNotFound { - defer response.Body.Close() - body, err := ioutil.ReadAll(response.Body) require.NoError(t, err) |