From 8f86881d1863726f8a74966c61ef86c4013ddefe Mon Sep 17 00:00:00 2001 From: gmarek Date: Fri, 5 May 2017 13:18:14 +0200 Subject: [PATCH] Extend timeouts in timed_workers_test --- pkg/controller/node/timed_workers_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/node/timed_workers_test.go b/pkg/controller/node/timed_workers_test.go index dfc19a3dbd8..08761371dba 100644 --- a/pkg/controller/node/timed_workers_test.go +++ b/pkg/controller/node/timed_workers_test.go @@ -89,7 +89,7 @@ func TestCancel(t *testing.T) { return nil }) now := time.Now() - then := now.Add(100 * time.Millisecond) + then := now.Add(time.Second) queue.AddWork(NewWorkArgs("1", "1"), now, then) queue.AddWork(NewWorkArgs("2", "2"), now, then) queue.AddWork(NewWorkArgs("3", "3"), now, then) @@ -119,7 +119,7 @@ func TestCancelAndReadd(t *testing.T) { return nil }) now := time.Now() - then := now.Add(100 * time.Millisecond) + then := now.Add(time.Second) queue.AddWork(NewWorkArgs("1", "1"), now, then) queue.AddWork(NewWorkArgs("2", "2"), now, then) queue.AddWork(NewWorkArgs("3", "3"), now, then)