diff options
Diffstat (limited to 'libgo/go/http/proxy_test.go')
-rw-r--r-- | libgo/go/http/proxy_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libgo/go/http/proxy_test.go b/libgo/go/http/proxy_test.go index 308bf44b48a..9b320b3aa5b 100644 --- a/libgo/go/http/proxy_test.go +++ b/libgo/go/http/proxy_test.go @@ -40,10 +40,8 @@ func TestUseProxy(t *testing.T) { no_proxy := "foobar.com, .barbaz.net" os.Setenv("NO_PROXY", no_proxy) - tr := &Transport{} - for _, test := range UseProxyTests { - if tr.useProxy(test.host+":80") != test.match { + if useProxy(test.host+":80") != test.match { t.Errorf("useProxy(%v) = %v, want %v", test.host, !test.match, test.match) } } |