e2e test for addon update
This commit is contained in:
@@ -45,6 +45,8 @@ type ConditionFunc func() (done bool, err error)
|
||||
// may be missed if the condition takes too long or the time window is too short.
|
||||
// If you pass maxTimes = 0, Poll will loop until condition returns true or an
|
||||
// error.
|
||||
// Poll always waits the interval before the first check of the condition.
|
||||
// TODO: create a separate PollImmediate function that does not wait.
|
||||
func Poll(interval, timeout time.Duration, condition ConditionFunc) error {
|
||||
return WaitFor(poller(interval, timeout), condition)
|
||||
}
|
||||
|
Reference in New Issue
Block a user