Skip to content

Commit

Permalink
fix: Revert develop.sh timeout -> curl change (#5008)
Browse files Browse the repository at this point in the history
It seems `--retry-all-errors` is not available on e.g. curl 7.68.0.
  • Loading branch information
mafredri committed Nov 10, 2022
1 parent 8c8344c commit 5e22530
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fatal() {
start_cmd "${CODER_DEV_SHIM}" server --address 0.0.0.0:3000

echo '== Waiting for Coder to become ready'
curl --silent --fail --connect-timeout 1 --max-time 1 --retry 60 --retry-delay 1 --retry-max-time 60 --retry-all-errors 'http://localhost:3000/healthz' ||
timeout 60s bash -c 'until curl -s --fail http://localhost:3000/healthz > /dev/null 2>&1; do sleep 0.5; done' ||
fatal 'Coder did not become ready in time'

# Check if credentials are already set up to avoid setting up again.
Expand Down

0 comments on commit 5e22530

Please sign in to comment.