Unset https_proxy before roundtripper_test

This commit is contained in:
xiangpengzhao 2016-07-11 22:34:44 -04:00
parent 0699b4d41e
commit 4691ccf2e1

View File

@ -30,6 +30,7 @@ import (
"k8s.io/kubernetes/pkg/util/httpstream"
)
// be sure to unset environment variable https_proxy (if exported) before testing, otherwise the testing will fail unexpectedly.
func TestRoundTripAndNewConnection(t *testing.T) {
localhostPool := x509.NewCertPool()
if !localhostPool.AppendCertsFromPEM(localhostCert) {