mirror of https://github.com/k3s-io/k3s
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
parent
4eecf5ada2
commit
f861d92e56
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue