From e6661c5f034bab88a41eb03fb15ca0ce6e541e11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Parmentier?= Date: Tue, 15 Oct 2024 17:39:25 +0200 Subject: [PATCH] ci(loterre-resolvers): Increase retry-interval to 30s --- bin/build-and-test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/build-and-test.sh b/bin/build-and-test.sh index 40988624..7de17af8 100755 --- a/bin/build-and-test.sh +++ b/bin/build-and-test.sh @@ -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 } @@ -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