Wait longer in pod cleanup

This commit is contained in:
Maciej Szulik 2018-04-05 10:49:55 +02:00
parent 827b3d77cd
commit c5ff356102
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -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())
}