diff options
author | Brad Fitzpatrick <bradfitz@golang.org> | 2019-11-04 04:00:29 +0000 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2019-11-04 23:16:09 +0000 |
commit | 2566e21f243387156e8e7f2acad0ce14d9712bbc (patch) | |
tree | afd805ec93137c876a6080b055e244ee14487ade /src/net/http/export_test.go | |
parent | 74af7fc6038aff15e3c9a7bf5791103e96952b3c (diff) | |
download | go-git-2566e21f243387156e8e7f2acad0ce14d9712bbc.tar.gz |
net/http: support disabling built-in HTTP/2 with a new build tag
Fixes #35082
Updates #6853
Change-Id: I4eeb0e15f534cff57fefb6039cd33fadf15b946e
Reviewed-on: https://go-review.googlesource.com/c/go/+/205139
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/net/http/export_test.go')
-rw-r--r-- | src/net/http/export_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net/http/export_test.go b/src/net/http/export_test.go index e5c06a8903..657ff9dba4 100644 --- a/src/net/http/export_test.go +++ b/src/net/http/export_test.go @@ -60,6 +60,12 @@ func init() { } } +func CondSkipHTTP2(t *testing.T) { + if omitBundledHTTP2 { + t.Skip("skipping HTTP/2 test when nethttpomithttp2 build tag in use") + } +} + var ( SetEnterRoundTripHook = hookSetter(&testHookEnterRoundTrip) SetRoundTripRetried = hookSetter(&testHookRoundTripRetried) |