Skip to content

Commit

Permalink
added retry max time
Browse files Browse the repository at this point in the history
Signed-off-by: Atanas Atanasov <[email protected]>
  • Loading branch information
ata-nas committed Nov 6, 2024
1 parent 46c8a71 commit ef648f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/test/resources/smoke-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef648f4

Please sign in to comment.