]> Cypherpunks repositories - gostls13.git/commit
net/http: make TestUseProxy repeatable
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 6 Mar 2014 14:44:14 +0000 (18:44 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 6 Mar 2014 14:44:14 +0000 (18:44 +0400)
commitfd7ff2049512b3a900004e3e3c83e45263f93d13
tree80471f5774e6665b6c389e89c4e7a39c735b4cff
parent130458470a11d1f16908d7db7fe683b621541a36
net/http: make TestUseProxy repeatable
Currently it fails on second and subsequent runs (when using -cpu=1,2,4) as:
--- FAIL: TestUseProxy-4 (0.00 seconds)
proxy_test.go:109: useProxy(barbaz.net) = true, want false
proxy_test.go:109: useProxy(foobar.com) = true, want false
proxy_test.go:109: useProxy(www.foobar.com) = true, want false

LGTM=bradfitz
R=bradfitz
CC=golang-codereviews
https://golang.org/cl/71940044
src/pkg/net/http/proxy_test.go
src/pkg/net/http/transport_test.go