From 3191b26bc6ca241fba85d0b183868f109e078213 Mon Sep 17 00:00:00 2001 From: Robert Rati Date: Tue, 19 May 2015 18:40:21 -0400 Subject: [PATCH] Only sleep 1.1*interval. #7572 --- test/e2e/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/util.go b/test/e2e/util.go index fca94ce5c53..77dcd8d6a34 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -555,7 +555,7 @@ func RunRC(config RCConfig) error { By(fmt.Sprintf("Making sure all %d replicas of rc %s in namespace %s exist", replicas, name, ns)) failCount := int(25 / interval) for same < failCount && current < replicas { - time.Sleep(time.Duration(interval*2) * time.Second) + time.Sleep(time.Duration(float32(interval)*1.1) * time.Second) // Greedily read all existing entries in the queue until // all pods are found submitted or the queue is empty @@ -593,7 +593,7 @@ func RunRC(config RCConfig) error { podLists.Reset() foundAllPods := false for same < failCount && current < replicas { - time.Sleep(time.Duration(interval*2) * time.Second) + time.Sleep(time.Duration(float32(interval)*1.1) * time.Second) // Greedily read all existing entries in the queue until // either all pods are running or the queue is empty