From 227391cc33fb198c3dc0d6add29d828bcce77b65 Mon Sep 17 00:00:00 2001 From: Atanas Atanasov Date: Wed, 6 Nov 2024 16:03:30 +0200 Subject: [PATCH] added retry max time Signed-off-by: Atanas Atanasov --- server/src/test/resources/smoke-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/test/resources/smoke-test.sh b/server/src/test/resources/smoke-test.sh index 38ae400d0..78e54acf3 100755 --- a/server/src/test/resources/smoke-test.sh +++ b/server/src/test/resources/smoke-test.sh @@ -46,14 +46,14 @@ SERVER_URL="http://localhost:8080" LIVENESS_ENDPOINT="/healthz/livez" READINESS_ENDPOINT="/healthz/readyz" -if ! curl -v --connect-timeout 5 --max-time 10 --retry 12 --retry-all-errors --retry-delay 5 $SERVER_URL$LIVENESS_ENDPOINT; then +if ! curl -v --connect-timeout 5 --max-time 10 --retry 12 --retry-delay 5 --retry-max-time 100 --retry-all-errors $SERVER_URL$LIVENESS_ENDPOINT; then echo "$LIVENESS_ENDPOINT failed." shutdown exit 1 fi echo "$LIVENESS_ENDPOINT endpoint is healthy." -if ! curl -v --connect-timeout 5 --max-time 10 --retry 12 --retry-all-errors --retry-delay 5 $SERVER_URL$READINESS_ENDPOINT; then +if ! curl -v --connect-timeout 5 --max-time 10 --retry 12 --retry-delay 5 --retry-max-time 100 --retry-all-errors $SERVER_URL$READINESS_ENDPOINT; then echo "$READINESS_ENDPOINT endpoint failed." shutdown exit 1