diff options
| author | Damien Neil <dneil@google.com> | 2026-03-03 11:26:47 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-12 08:09:45 -0700 |
| commit | b8cdabcf99218c50a08d12a80f8b0ff8171ee2e3 (patch) | |
| tree | c04bc94c9e9921122ab6c6081571fa90f6db7d1f /src/net/http/export_test.go | |
| parent | 4498bf1a90bb693f256e991204d082f16d103eb0 (diff) | |
| download | go-b8cdabcf99218c50a08d12a80f8b0ff8171ee2e3.tar.xz | |
net/http/internal/http2: remove ExportSetH2GoawayTimeout
This was used by one test. Rewrite that test to use synctest (faster!)
and not care about the timeout.
For #67810
Change-Id: I61496e575ae8a16ff778470f3f9d711e6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/751303
Reviewed-by: Nicholas Husin <husin@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Nicholas Husin <nsh@golang.org>
Diffstat (limited to 'src/net/http/export_test.go')
| -rw-r--r-- | src/net/http/export_test.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/net/http/export_test.go b/src/net/http/export_test.go index 5492a97a98..472d9c37ae 100644 --- a/src/net/http/export_test.go +++ b/src/net/http/export_test.go @@ -292,12 +292,6 @@ func (r *Request) WithT(t *testing.T) *Request { return r.WithContext(context.WithValue(r.Context(), tLogKey{}, t.Logf)) } -func ExportSetH2GoawayTimeout(d time.Duration) (restore func()) { - old := http2goAwayTimeout - http2goAwayTimeout = d - return func() { http2goAwayTimeout = old } -} - func (r *Request) ExportIsReplayable() bool { return r.isReplayable() } // ExportCloseTransportConnsAbruptly closes all idle connections from |
