Merge pull request #1002 from smarterclayton/improve_wait_api

Improve the wait.Poll GoDoc and api
This commit is contained in:
Clayton Coleman
2014-08-25 13:07:04 -04:00
4 changed files with 78 additions and 16 deletions

View File

@@ -102,7 +102,7 @@ func Update(name string, client client.Interface, updatePeriod time.Duration) er
}
time.Sleep(updatePeriod)
}
return wait.Poll(time.Second*5, 60 /* timeout after 300 seconds */, func() (bool, error) {
return wait.Poll(time.Second*5, time.Second*300, func() (bool, error) {
podList, err := client.ListPods(s)
if err != nil {
return false, err