diff options
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) } |