From 281b3c15abb305285cacf3a08f04468e9ee8b637 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Wed, 28 Jan 2015 14:10:51 -0800 Subject: [PATCH] introduce a timeout for the update test. --- hack/e2e-suite/update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/e2e-suite/update.sh b/hack/e2e-suite/update.sh index 138832fc234..fde6a6df078 100755 --- a/hack/e2e-suite/update.sh +++ b/hack/e2e-suite/update.sh @@ -33,7 +33,9 @@ function validate() { # Container turn up on a clean cluster can take a while for the docker image pull. local num_running=0 - while [[ $num_running -ne $num_replicas ]]; do + local i=0 + while [[ ${num_running} -ne ${num_replicas} && ${i} -ne 100]]; do + ((i++)) || true echo "Waiting for all containers in pod to come up. Currently: ${num_running}/${num_replicas}" sleep 2