diff options
author | 2017-12-16 11:25:18 -0800 | |
---|---|---|
committer | 2017-12-16 11:25:18 -0800 | |
commit | 27196589fbd36f5f840e51b59bd6253d0f865db3 (patch) | |
tree | 4896268c735528045e4064ace92a2a75280585b8 /vendor/golang.org/x/net/http/httpproxy/proxy_test.go | |
parent | 231ebf2daa9c024fbe99277f57935444946824bd (diff) |
Add FeedIcon API call and update dependencies
Diffstat (limited to 'vendor/golang.org/x/net/http/httpproxy/proxy_test.go')
-rw-r--r-- | vendor/golang.org/x/net/http/httpproxy/proxy_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/golang.org/x/net/http/httpproxy/proxy_test.go b/vendor/golang.org/x/net/http/httpproxy/proxy_test.go index f307964..e4af199 100644 --- a/vendor/golang.org/x/net/http/httpproxy/proxy_test.go +++ b/vendor/golang.org/x/net/http/httpproxy/proxy_test.go @@ -16,6 +16,9 @@ import ( "golang.org/x/net/http/httpproxy" ) +// setHelper calls t.Helper() for Go 1.9+ (see go19_test.go) and does nothing otherwise. +var setHelper = func(t *testing.T) {} + type proxyForURLTest struct { cfg httpproxy.Config req string // URL to fetch; blank means "http://example.com" @@ -166,7 +169,7 @@ var proxyForURLTests = []proxyForURLTest{{ }} func testProxyForURL(t *testing.T, tt proxyForURLTest) { - t.Helper() + setHelper(t) reqURLStr := tt.req if reqURLStr == "" { reqURLStr = "http://example.com" |