From 42e4f06fe9625105c3387088be9f332e6ec27677 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 25 Oct 2018 09:49:13 +0200 Subject: [PATCH] fix flaky test --- common/signal/timer_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/signal/timer_test.go b/common/signal/timer_test.go index c104d44a..2863d764 100644 --- a/common/signal/timer_test.go +++ b/common/signal/timer_test.go @@ -14,7 +14,7 @@ func TestActivityTimer(t *testing.T) { assert := With(t) ctx, cancel := context.WithCancel(context.Background()) - timer := CancelAfterInactivity(ctx, cancel, time.Second*5) + timer := CancelAfterInactivity(ctx, cancel, time.Second*4) time.Sleep(time.Second * 6) assert(ctx.Err(), IsNotNil) runtime.KeepAlive(timer)