From ea22d5bad163079de1d9563f677d2887a8820d09 Mon Sep 17 00:00:00 2001 From: Iain Sproat <68657+iainsproat@users.noreply.github.com> Date: Tue, 31 Dec 2024 18:27:05 +0000 Subject: [PATCH] wait until server is ready --- .github/workflows/rest-api-fuzzer.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rest-api-fuzzer.yml b/.github/workflows/rest-api-fuzzer.yml index 8c0e058989..0c8c31ca85 100644 --- a/.github/workflows/rest-api-fuzzer.yml +++ b/.github/workflows/rest-api-fuzzer.yml @@ -168,7 +168,11 @@ jobs: - name: Run RESTler coverage test run: | - curl --head --fail http://127.0.0.1:3000/readiness + until curl --output /dev/null --silent --head --fail http://127.0.0.1:3000/readiness; do + echo "Waiting a further 3 seconds for speckle-server to start..." + sleep 3 + done + ${{ github.workspace }}/bin/restler/Restler test \ --grammar_file "${{ github.workspace }}/Compile/grammar.py" \ --dictionary_file "${{ github.workspace }}/speckle-server/setup/fuzzer/dictionary.restler.json" \