mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
http2: remove PingTimeout from TestTransportPingWhenReading
Use the default PingTimeout since it has no bearing on the test. A small value can cause a failure on slower machines. Rely on the deadline to determine a sufficient amount of time to complete. Fixes golang/go#48668 Change-Id: I9389777fa00ed5193f1fc7ae04d2e2134114c675 Reviewed-on: https://go-review.googlesource.com/c/net/+/352970 Reviewed-by: Bryan C. Mills <bcmills@google.com> Trust: Bryan C. Mills <bcmills@google.com> Trust: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
d455829e37
commit
e81a3d93ec
@@ -3437,7 +3437,6 @@ func TestTransportPingWhenReading(t *testing.T) {
|
||||
func testTransportPingWhenReading(t *testing.T, readIdleTimeout, deadline time.Duration, expectedPingCount int) {
|
||||
var pingCount int
|
||||
ct := newClientTester(t)
|
||||
ct.tr.PingTimeout = 10 * time.Millisecond
|
||||
ct.tr.ReadIdleTimeout = readIdleTimeout
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), deadline)
|
||||
|
||||
Reference in New Issue
Block a user