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