Skip to content

Commit

Permalink
Merge pull request #5103 from connext/hotfix-prod-smoke-test
Browse files Browse the repository at this point in the history
fix: increase wait attempts
  • Loading branch information
preethamr authored Nov 1, 2023
2 parents fa26822 + 0d9cc82 commit 5e01d20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/bin/wait-for-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ function wait_for_service() {
local attempt=1

until curl -f --max-time 1 "http://localhost:${PORT}/ping" &>/dev/null; do
echo "${attempt}/30: Service not up, sleeping ${attempt} seconds..."
echo "${attempt}/60: Service not up, sleeping ${attempt} seconds..."
sleep ${attempt}
attempt=$((attempt + 1))
if [[ ${attempt} == 30 ]]
if [[ ${attempt} == 60 ]]
then
echo -e "\033[31mERROR\033[m: Waited too long for ${SERVICE} to become available!"
exit 1
Expand Down

0 comments on commit 5e01d20

Please sign in to comment.