mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
pkg/transport: bump wait time in TestReadWriteTimeoutDialer for write deadline
Was able to get 2s wait times with 500 concurrent requests on a fast machine; a slower machine could possibly see similar delays with a single connection. Fixes #6220
This commit is contained in:
parent
5e6d2a23b7
commit
3b92384394
@ -50,8 +50,9 @@ func TestReadWriteTimeoutDialer(t *testing.T) {
|
||||
|
||||
select {
|
||||
case <-done:
|
||||
// It waits 1s more to avoid delay in low-end system.
|
||||
case <-time.After(d.wtimeoutd*10 + time.Second):
|
||||
// Wait 5s more than timeout to avoid delay in low-end systems;
|
||||
// the slack was 1s extra, but that wasn't enough for CI.
|
||||
case <-time.After(d.wtimeoutd*10 + 5*time.Second):
|
||||
t.Fatal("wait timeout")
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user