diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2021-08-19 08:49:59 +0300 |
---|---|---|
committer | Jaime Martinez <jmartinez@gitlab.com> | 2021-08-19 08:49:59 +0300 |
commit | 2bd9d969ce88e05b3b2cb1ed06e4963fe3478360 (patch) | |
tree | a470b4c7c4389fa9e14d1e07f8d315d2d3185472 /test/acceptance/unknown_http_method_test.go | |
parent | 111faf403e3df4c6e998a625f7ad8b22da4ff6ee (diff) | |
parent | 99bc678dfe8fc6f41a415c19ed5bfc64e162adc7 (diff) |
Merge branch 'fix/test-bodyclose' into 'master'
test: fix response body not being closed
See merge request gitlab-org/gitlab-pages!546
Diffstat (limited to 'test/acceptance/unknown_http_method_test.go')
-rw-r--r-- | test/acceptance/unknown_http_method_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/acceptance/unknown_http_method_test.go b/test/acceptance/unknown_http_method_test.go index 87422292..dfe9c82f 100644 --- a/test/acceptance/unknown_http_method_test.go +++ b/test/acceptance/unknown_http_method_test.go @@ -18,6 +18,7 @@ func TestUnknownHTTPMethod(t *testing.T) { resp, err := DoPagesRequest(t, httpListener, req) require.NoError(t, err) + defer resp.Body.Close() require.Equal(t, http.StatusMethodNotAllowed, resp.StatusCode) } |