diff options
| author | Damien Neil <dneil@google.com> | 2026-03-03 15:46:00 -0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-12 08:10:29 -0700 |
| commit | 74649c1cc56b7b9a979b579feab8705378b410f0 (patch) | |
| tree | 19a8a5a63090515d6e1c98f383a15320ab555cf4 /src/net/http | |
| parent | 62dfe99dab8e85b10b9b519f9303a9fd7615ab91 (diff) | |
| download | go-74649c1cc56b7b9a979b579feab8705378b410f0.tar.xz | |
net/http/internal/http2: remove TestClientConnPing
Ping is no longer a public API.
For #67810
Change-Id: I7df19d443634ada23cf4137b96cb25676a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/751311
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>
Reviewed-by: Nicholas Husin <husin@google.com>
Diffstat (limited to 'src/net/http')
| -rw-r--r-- | src/net/http/internal/http2/transport_test.go | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/net/http/internal/http2/transport_test.go b/src/net/http/internal/http2/transport_test.go index bad4e5da26..e26c426649 100644 --- a/src/net/http/internal/http2/transport_test.go +++ b/src/net/http/internal/http2/transport_test.go @@ -2650,22 +2650,6 @@ func testRoundTripDoesntConsumeRequestBodyEarly(t testing.TB) { } } -func TestClientConnPing(t *testing.T) { - ts := newTestServer(t, func(w http.ResponseWriter, r *http.Request) {}) - tr := &Transport{ - TLSClientConfig: tlsConfigInsecure, - } - defer tr.CloseIdleConnections() - ctx := context.Background() - cc, err := tr.DialClientConn(ctx, ts.Listener.Addr().String(), false) - if err != nil { - t.Fatal(err) - } - if err = cc.Ping(context.Background()); err != nil { - t.Fatal(err) - } -} - // Issue 16974: if the server sent a DATA frame after the user // canceled the Transport's Request, the Transport previously wrote to a // closed pipe, got an error, and ended up closing the whole TCP |
