Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd4a3d85f4 |
@@ -557,13 +557,14 @@ 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 at latest. The ping interval is longer than
|
// connection a second after latest. The ping interval is
|
||||||
// testPingInterval, so that the time between the expected
|
// longer than testPingInterval, so that the time between
|
||||||
// close and latest leaves room for a loaded host.
|
// the expected close and latest leaves room for a loaded
|
||||||
|
// host.
|
||||||
const (
|
const (
|
||||||
interval = 3 * time.Second
|
interval = 4 * time.Second
|
||||||
earliest = interval + testPongDeadline
|
earliest = interval + testPongDeadline
|
||||||
latest = 2 * interval
|
latest = 2*interval - time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
env := newTestEnvWithPingTimes(
|
env := newTestEnvWithPingTimes(
|
||||||
|
|||||||
Reference in new issue
Block a user