Skip to content

Commit

Permalink
ci(loterre-resolvers): Increase retry-interval to 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
parmentf committed Oct 15, 2024
1 parent 59837f0 commit e6661c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/build-and-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

set -eu

# Wait until $1 is available, retrying every $3 milliseconds up to $2 times.
wait_for_url () {
echo "Waiting for $1"
sleep 2m
printf 'GET %s\nHTTP 200' "$1" | hurl --retry "$2" > /dev/null;
printf 'GET %s\nHTTP 200' "$1" | hurl --retry "$2" --retry-interval "$3" > /dev/null;
return 0
}

Expand All @@ -20,7 +20,7 @@ cd "services/$SERVICE_NAME"
npm run start:dev

echo "Waiting server to be ready"
wait_for_url "http://localhost:31976" 10
wait_for_url "http://localhost:31976" 10 30000

echo "Running hurl tests"
hurl --variable host=http://localhost:31976 --test tests.hurl
Expand Down

0 comments on commit e6661c5

Please sign in to comment.