From a3dd7ca9ee39861320a8fb554b8760bccc9fd4a3 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Mon, 18 Sep 2017 16:06:24 +0200 Subject: [PATCH] increase timeout in TestCancelAndReadd the flakes referenced in #51704 were still seen downstream. the current timeout approach is known to be faulty, but fixing the tests has not been prioritized. this increases the timeout sufficiently to avoid flakes in the meantime --- .../nodelifecycle/scheduler/timed_workers_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/controller/nodelifecycle/scheduler/timed_workers_test.go b/pkg/controller/nodelifecycle/scheduler/timed_workers_test.go index e07c6daee1a..9489fd18437 100644 --- a/pkg/controller/nodelifecycle/scheduler/timed_workers_test.go +++ b/pkg/controller/nodelifecycle/scheduler/timed_workers_test.go @@ -61,7 +61,7 @@ func TestExecuteDelayed(t *testing.T) { return nil }) now := time.Now() - then := now.Add(3 * time.Second) + then := now.Add(10 * time.Second) queue.AddWork(NewWorkArgs("1", "1"), now, then) queue.AddWork(NewWorkArgs("2", "2"), now, then) queue.AddWork(NewWorkArgs("3", "3"), now, then) @@ -89,7 +89,7 @@ func TestCancel(t *testing.T) { return nil }) now := time.Now() - then := now.Add(3 * time.Second) + then := now.Add(10 * 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(3 * time.Second) + then := now.Add(10 * time.Second) queue.AddWork(NewWorkArgs("1", "1"), now, then) queue.AddWork(NewWorkArgs("2", "2"), now, then) queue.AddWork(NewWorkArgs("3", "3"), now, then)