From 2926294865ab173a043cec11cf60bff1aead746c 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 1d772f337..8627a1dfd 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 {