From 567e10dc7c6aae003fcdad61e3e61af5e283e2ed Mon Sep 17 00:00:00 2001 From: Sebastian Choren Date: Wed, 8 Nov 2023 15:53:21 -0300 Subject: [PATCH] add delay before tests --- .github/workflows/docker.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 539332f..8e940b7 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -56,7 +56,8 @@ jobs: || (docker compose -f docker-compose.agent.yml logs; exit 1) - name: Wait for pokeshop services run: | - timeout 60 bash -c 'until echo > /dev/tcp/localhost/8081; do sleep 1; done; echo "pokeshop http api ready"' + sleep 15 # it might take some time for docker compose to start up + timeout 60 bash -c 'until nc -z -w 1 localhost '8081' > /dev/null 2>&1; do sleep 1; done; echo "pokeshop http api ready"' - name: Run tracetests run: | export TRACETEST_TOKEN=${{ secrets.TRACETEST_TOKEN }}