Skip to content

Commit

Permalink
Wait for node-4 to be created before querying it
Browse files Browse the repository at this point in the history
  • Loading branch information
karimodm committed Nov 1, 2023
1 parent 43e6c44 commit 3ba26b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker-network-health.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Polling health and killing run.sh if healthy
run: |
# wait for node-4 to be created before querying it
timeout 300s bash -c 'until docker ps | grep docker-network-node-4; do sleep 5; done'
sleep 10 # Additional 10 seconds wait
SUCCESS=false
while true; do
OUTPUT=$(curl -o /dev/null -s -w "%{http_code}\n" http://localhost:8080/health)
Expand Down

0 comments on commit 3ba26b8

Please sign in to comment.