Add a bit more padding to tests so they pass on osx with -race

This commit is contained in:
Ethan Frey 2017-12-06 09:18:04 +01:00
parent bfcc0217f1
commit 3d9113c16e
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func TestRepeat(test *testing.T) {
short := time.Duration(20) * time.Millisecond
// delay waits for cnt durations, an a little extra
delay := func(cnt int) time.Duration {
return time.Duration(cnt)*dur + time.Millisecond
return time.Duration(cnt)*dur + time.Duration(5)*time.Millisecond
}
t := NewRepeatTimer("bar", dur)