From 92c17f3f251d51878dc866a42dc57dc09df88ac8 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Fri, 29 Dec 2017 10:49:49 -0500 Subject: [PATCH] give test more time --- common/repeat_timer_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/repeat_timer_test.go b/common/repeat_timer_test.go index da1687073..5a3a4c0a6 100644 --- a/common/repeat_timer_test.go +++ b/common/repeat_timer_test.go @@ -29,11 +29,11 @@ func TestRepeat(t *testing.T) { // tock consumes Ticker.Chan() events `cnt` times. tock := func(t *testing.T, rt *RepeatTimer, cnt int) { for i := 0; i < cnt; i++ { - timeout := time.After(time.Second * 2) + timeout := time.After(time.Second * 10) select { case <-rt.Chan(): case <-timeout: - t.Fatal("expected RepeatTimer to fire") + panic("expected RepeatTimer to fire") } } done := true