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)