From 86764ba4cebeca0c0380b2baf7ffbd44e6f754c1 Mon Sep 17 00:00:00 2001 From: Jerzy Szczepkowski Date: Wed, 15 Jun 2016 11:33:50 +0200 Subject: [PATCH] Changed constans to reduce hpa e2e test flakiness. Changed constans to reduce hpa e2e test flakiness. --- test/e2e/autoscaling_utils.go | 2 +- test/e2e/horizontal_pod_autoscaling.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/autoscaling_utils.go b/test/e2e/autoscaling_utils.go index f0d345cb217..5f813e65698 100644 --- a/test/e2e/autoscaling_utils.go +++ b/test/e2e/autoscaling_utils.go @@ -272,7 +272,7 @@ func (rc *ResourceConsumer) GetReplicas() int { } func (rc *ResourceConsumer) WaitForReplicas(desiredReplicas int) { - timeout := 10 * time.Minute + timeout := 15 * time.Minute for start := time.Now(); time.Since(start) < timeout; time.Sleep(20 * time.Second) { if desiredReplicas == rc.GetReplicas() { framework.Logf("%s: current replicas number is equal to desired replicas number: %d", rc.kind, desiredReplicas) diff --git a/test/e2e/horizontal_pod_autoscaling.go b/test/e2e/horizontal_pod_autoscaling.go index 7dae3a30ce6..48a55e6297e 100644 --- a/test/e2e/horizontal_pod_autoscaling.go +++ b/test/e2e/horizontal_pod_autoscaling.go @@ -169,7 +169,7 @@ func scaleDown(name, kind string, checkStability bool, rc *ResourceConsumer, f * maxPods: 5, firstScale: 3, firstScaleStasis: stasis, - cpuBurst: 100, + cpuBurst: 10, secondScale: 1, } scaleTest.run(name, kind, rc, f)