From c1d0de5bd2f2e8335d1d397f0bf3286b01239b31 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Wed, 3 May 2017 13:26:55 -0700 Subject: [PATCH] Don't reuse transport/client --- command/agent/http_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/command/agent/http_test.go b/command/agent/http_test.go index 379bb06a2..7dc43bbda 100644 --- a/command/agent/http_test.go +++ b/command/agent/http_test.go @@ -447,6 +447,8 @@ func TestHTTP_VerifyHTTPSClient(t *testing.T) { } return &c, nil } + transport = &http.Transport{TLSClientConfig: tlsConf} + client = &http.Client{Transport: transport} req, err = http.NewRequest("GET", reqURL, nil) if err != nil { t.Fatalf("error creating request: %v", err)