mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #3059 from yichengq/fix-wait-stress-test
pkg/wait: extend timeout to check closed channel
This commit is contained in:
commit
3d4642c2c4
@ -61,7 +61,7 @@ func TestWaitTestStress(t *testing.T) {
|
||||
for _, ch := range chs {
|
||||
select {
|
||||
case <-ch:
|
||||
case <-time.After(10 * time.Millisecond):
|
||||
case <-time.After(time.Second):
|
||||
t.Fatalf("cannot receive from ch as expected")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user