Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebea2abe28 |
@@ -557,14 +557,13 @@ func TestQuietClientNotAnsweringPingIsClosed(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
// A read deadline of two ping intervals would close the
|
||||
// connection a second after latest. The ping interval is
|
||||
// longer than testPingInterval, so that the time between
|
||||
// the expected close and latest leaves room for a loaded
|
||||
// host.
|
||||
// connection at latest. The ping interval is longer than
|
||||
// testPingInterval, so that the time between the expected
|
||||
// close and latest leaves room for a loaded host.
|
||||
const (
|
||||
interval = 4 * time.Second
|
||||
interval = 3 * time.Second
|
||||
earliest = interval + testPongDeadline
|
||||
latest = 2*interval - time.Second
|
||||
latest = 2 * interval
|
||||
)
|
||||
|
||||
env := newTestEnvWithPingTimes(
|
||||
|
||||
Reference in new issue
Block a user