From 4e5245e6b8c1dfec0a6b496f6764ae826f5da748 Mon Sep 17 00:00:00 2001 From: Pierrick HYMBERT Date: Mon, 19 Feb 2024 22:52:56 +0100 Subject: [PATCH] server: tests: fix ci workflow --- examples/server/tests/tests.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/examples/server/tests/tests.sh b/examples/server/tests/tests.sh index d3d414cd3..36297e9db 100755 --- a/examples/server/tests/tests.sh +++ b/examples/server/tests/tests.sh @@ -6,6 +6,7 @@ then exit 1 fi +# kill the server at the end cleanup() { pkill -P $$ } @@ -30,16 +31,5 @@ set -eu --cont-batching \ "$@" & -# Wait for the server to start -max_attempts=30 -attempts=${max_attempts} -until curl --silent --fail "http://localhost:8080/health" | jq -r '.status' | grep ok; do - attempts=$(( attempts - 1)); - [ "${attempts}" -eq 0 ] && { echo "Server did not startup" >&2; exit 1; } - sleep_time=$(( (max_attempts - attempts) * 2 )) - echo "waiting for server to be ready ${sleep_time}s..." - sleep ${sleep_time} -done - # Start tests behave \ No newline at end of file