Skip to content

Commit

Permalink
Update logic to wait for container to start
Browse files Browse the repository at this point in the history
  • Loading branch information
gherceg committed Jan 1, 2024
1 parent f4ddee3 commit 90890fe
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,7 @@ jobs:
klaemo/couchdb:2.0-dev \
--with-admin-party-please --with-haproxy -n 1
- name: wait for couch to start
run: |
while:
do
curl http://localhost:5984/${db_name} -sv 2>&1 | grep '^< HTTP/.* 200 OK' && break || continue
sleep 1
done
run: timeout 60s sh -c 'until curl http://localhost:5984/${db_name} -sv 2>&1 | grep "^< HTTP/.* 200 OK"; do echo "Waiting for container to be healthy..."; sleep 2; done'
- name: run tests
run: |
python setup.py test

0 comments on commit 90890fe

Please sign in to comment.