From a248d0ccf92d8204c77a539bbdee809a9e296985 Mon Sep 17 00:00:00 2001 From: Robert Rati Date: Wed, 3 Jun 2015 14:59:29 -0400 Subject: [PATCH] Default RunRC to check every 10 seconds if an internval isn't provided. #7572 --- test/e2e/util.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/e2e/util.go b/test/e2e/util.go index 80dd9dfaff6..5ddcf28c0c7 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -723,13 +723,17 @@ func RunRC(config RCConfig) error { image := config.Image replicas := config.Replicas interval := config.PollInterval - maxContainerFailures := int(math.Max(1.0, float64(replicas)*.01)) current := 0 same := 0 label := labels.SelectorFromSet(labels.Set(map[string]string{"name": name})) podLists := newFifoQueue() + // Default to 10 second polling/check interval + if interval <= 0 { + interval = 10 + } + By(fmt.Sprintf("%v Creating replication controller %s", time.Now(), name)) rc := &api.ReplicationController{ ObjectMeta: api.ObjectMeta{