From 79b6f13be00327132669649ee100bf59fe71889d Mon Sep 17 00:00:00 2001 From: gmarek Date: Tue, 5 Jan 2016 11:22:15 +0100 Subject: [PATCH] Increase timeout for waiting for kubectl proxy in test-cmd --- hack/test-cmd.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hack/test-cmd.sh b/hack/test-cmd.sh index 3e930cfbf92..d90861e2c5a 100755 --- a/hack/test-cmd.sh +++ b/hack/test-cmd.sh @@ -54,10 +54,12 @@ function start-proxy() done PROXY_PID=$! + # We try checking kubectl proxy 30 times with 1s delays to avoid occasional + # failures. if [ $# -eq 0 ]; then - kube::util::wait_for_url "http://127.0.0.1:${PROXY_PORT}/healthz" "kubectl proxy" + kube::util::wait_for_url "http://127.0.0.1:${PROXY_PORT}/healthz" "kubectl proxy" 1 30 else - kube::util::wait_for_url "http://127.0.0.1:${PROXY_PORT}/$1/healthz" "kubectl proxy --api-prefix=$1" + kube::util::wait_for_url "http://127.0.0.1:${PROXY_PORT}/$1/healthz" "kubectl proxy --api-prefix=$1" 1 30 fi }