Browse Source

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

pull/1842/head
Ethan Frey 7 years ago
parent
commit
3d9113c16e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/repeat_timer_test.go

+ 1
- 1
common/repeat_timer_test.go 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)


Loading…
Cancel
Save