From 3d9113c16e08fe53f31a2403a5280202c8c9cc14 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Wed, 6 Dec 2017 09:18:04 +0100 Subject: [PATCH] Add a bit more padding to tests so they pass on osx with -race --- common/repeat_timer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/repeat_timer_test.go b/common/repeat_timer_test.go index 9f03f41df..87f34b950 100644 --- a/common/repeat_timer_test.go +++ b/common/repeat_timer_test.go @@ -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)