From 01f5db46e864b71d7f4f6ca73b0392c77eaf3bd8 Mon Sep 17 00:00:00 2001 From: Isaac Williams Date: Tue, 10 Apr 2018 08:02:47 -0400 Subject: [PATCH] Close HTTP response in Agent test (HTTPAPI_MethodNotAllowed_OSS) --- agent/http_oss_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/http_oss_test.go b/agent/http_oss_test.go index 1d772f3376..8627a1dfda 100644 --- a/agent/http_oss_test.go +++ b/agent/http_oss_test.go @@ -60,6 +60,7 @@ func TestHTTPAPI_MethodNotAllowed_OSS(t *testing.T) { if err != nil { t.Fatal("client.Do failed: ", err) } + defer resp.Body.Close() allowed := method == "OPTIONS" for _, allowedMethod := range allowedMethods {