From fdc1e0b310af003ed1d6d5ab372ecc4fe20ff556 Mon Sep 17 00:00:00 2001 From: Seth Jennings Date: Mon, 22 Feb 2016 15:31:28 -0600 Subject: [PATCH] increase wait_for_url defaults --- hack/lib/util.sh | 4 ++-- hack/test-cmd.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hack/lib/util.sh b/hack/lib/util.sh index cc00baeba5d..b42f4fae199 100755 --- a/hack/lib/util.sh +++ b/hack/lib/util.sh @@ -27,8 +27,8 @@ kube::util::realpath() { kube::util::wait_for_url() { local url=$1 local prefix=${2:-} - local wait=${3:-0.5} - local times=${4:-25} + local wait=${3:-1} + local times=${4:-30} which curl >/dev/null || { kube::log::usage "curl must be installed" diff --git a/hack/test-cmd.sh b/hack/test-cmd.sh index 7b5ec0ec241..630de9c02ea 100755 --- a/hack/test-cmd.sh +++ b/hack/test-cmd.sh @@ -70,9 +70,9 @@ function start-proxy() # 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" 1 30 + kube::util::wait_for_url "http://127.0.0.1:${PROXY_PORT}/healthz" "kubectl proxy" else - kube::util::wait_for_url "http://127.0.0.1:${PROXY_PORT}/$1/healthz" "kubectl proxy --api-prefix=$1" 1 30 + kube::util::wait_for_url "http://127.0.0.1:${PROXY_PORT}/$1/healthz" "kubectl proxy --api-prefix=$1" fi }