From f861d92e56f57dee1d9b82e52c1d469fd5087bc9 Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Sat, 11 Jul 2015 10:31:47 -0400 Subject: [PATCH] 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!) --- test/e2e/resize_nodes.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/e2e/resize_nodes.go b/test/e2e/resize_nodes.go index 3f4b6f5fd9a..0becc7c6028 100644 --- a/test/e2e/resize_nodes.go +++ b/test/e2e/resize_nodes.go @@ -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)