Commit 4691ccf2 authored by xiangpengzhao's avatar xiangpengzhao

Unset https_proxy before roundtripper_test

parent 0699b4d4
...@@ -30,6 +30,7 @@ import ( ...@@ -30,6 +30,7 @@ import (
"k8s.io/kubernetes/pkg/util/httpstream" "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) { func TestRoundTripAndNewConnection(t *testing.T) {
localhostPool := x509.NewCertPool() localhostPool := x509.NewCertPool()
if !localhostPool.AppendCertsFromPEM(localhostCert) { if !localhostPool.AppendCertsFromPEM(localhostCert) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment