e2e: AWS: Increase timeout on the node resize tests

Regularly hitting these timeouts, it seems that AWS is just slower to boot;
this makes sense - AWS uses a standard image for example, so has more software
to install (never mind any arguments about the clouds themselves!)
pull/6/head
Justin Santa Barbara 2015-07-11 10:31:47 -04:00
parent 4eecf5ada2
commit f861d92e56
1 changed files with 7 additions and 1 deletions

View File

@ -118,7 +118,13 @@ func waitForGroupSize(size int) error {
} }
func waitForClusterSize(c *client.Client, 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()) nodes, err := c.Nodes().List(labels.Everything(), fields.Everything())
if err != nil { if err != nil {
Logf("Failed to list nodes: %v", err) Logf("Failed to list nodes: %v", err)