mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #2826 from yichengq/fix-wait-test
pkg/wait: fix TestWaitTestStress
This commit is contained in:
commit
1a9dcd2f72
@ -53,6 +53,8 @@ func TestWaitTestStress(t *testing.T) {
|
||||
wt := NewTimeList()
|
||||
for i := 0; i < 10000; i++ {
|
||||
chs = append(chs, wt.Wait(time.Now()))
|
||||
// sleep one nanosecond before waiting on the next event
|
||||
time.Sleep(time.Nanosecond)
|
||||
}
|
||||
wt.Trigger(time.Now())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user