Merge pull request #11117 from justinsb/e2e_aws_increase_nodeboot_timeout

e2e: AWS: Increase timeout on the node resize tests
This commit is contained in:
Tim Hockin 2015-07-11 23:16:44 -07:00
commit d108d7f1d0

View File

@ -118,7 +118,13 @@ func waitForGroupSize(size int) error {
}
func waitForClusterSize(c *client.Client, size int) error {
for start := time.Now(); time.Since(start) < 4*time.Minute; time.Sleep(20 * time.Second) {
timeout := 4 * time.Minute
if providerIs("aws") {
// AWS is not as fast as gce/gke at having nodes come online
timeout = 10 * time.Minute
}
for start := time.Now(); time.Since(start) < timeout; time.Sleep(20 * time.Second) {
nodes, err := c.Nodes().List(labels.Everything(), fields.Everything())
if err != nil {
Logf("Failed to list nodes: %v", err)