lib/pacer: make tests more reliable

s3-about
Nick Craig-Wood 2019-09-20 16:07:55 +01:00
parent 557edecd40
commit 1164eed2af
1 changed files with 2 additions and 2 deletions

View File

@ -343,7 +343,7 @@ func TestCallParallel(t *testing.T) {
assert.Equal(t, errFoo, p.CallNoRetry(dp.fn))
}()
}
time.Sleep(10 * time.Millisecond)
time.Sleep(250 * time.Millisecond)
called := 0
wait.L.Lock()
for _, dp := range funcs {
@ -353,7 +353,7 @@ func TestCallParallel(t *testing.T) {
assert.Equal(t, 3, called)
wait.Broadcast()
time.Sleep(20 * time.Millisecond)
time.Sleep(250 * time.Millisecond)
called = 0
wait.L.Lock()