Skip to content

Commit

Permalink
ci(loterre-resolvers): Add retry-interval to ALL scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
parmentf committed Oct 17, 2024
1 parent 2c4c640 commit 0600294
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/test-on-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu

wait_for_url () {
echo "Waiting for $1"
printf 'GET %s\nHTTP 200' "$1" | hurl --retry "$2" > /dev/null;
printf 'GET %s\nHTTP 200' "$1" | hurl --retry "$2" --retry-interval "$3" --verbose > /dev/null;
return 0
}

Expand All @@ -19,7 +19,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
4 changes: 2 additions & 2 deletions bin/test-on-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eu

wait_for_url () {
echo "Waiting for $1"
printf 'GET %s\nHTTP 200' "$1" | hurl --retry "$2" > /dev/null;
printf 'GET %s\nHTTP 200' "$1" | hurl --retry "$2" --retry-interval "$3" --verbose > /dev/null;
return 0
}

Expand All @@ -24,7 +24,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 0600294

Please sign in to comment.