From c5ff3561026c7586fb1ed1248c89e75c479ed904 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Thu, 5 Apr 2018 10:49:55 +0200 Subject: [PATCH] Wait longer in pod cleanup --- test/e2e/framework/util.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 1b886ed2201..1147275aa5c 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -2077,11 +2077,6 @@ func AssertCleanup(ns string, selectors ...string) { nsArg = fmt.Sprintf("--namespace=%s", ns) } - backoff := wait.Backoff{ - Duration: 5 * time.Second, - Factor: 2, - Steps: 3, - } var e error verifyCleanupFunc := func() (bool, error) { e = nil @@ -2099,7 +2094,7 @@ func AssertCleanup(ns string, selectors ...string) { } return true, nil } - err := wait.ExponentialBackoff(backoff, verifyCleanupFunc) + err := wait.PollImmediate(500*time.Millisecond, 1*time.Minute, verifyCleanupFunc) if err != nil { Failf(e.Error()) }