fix run test script: sleep to make sure the Db container is ready

This commit is contained in:
Son 2022-01-24 18:05:06 +01:00
parent 227087a10f
commit f1c0b94ffd
1 changed files with 5 additions and 0 deletions

View File

@ -1,7 +1,12 @@
# Run tests
docker rm -f sl-test-db
docker run -d --name sl-test-db -e POSTGRES_PASSWORD=test -e POSTGRES_USER=test -e POSTGRES_DB=test -p 15432:5432 postgres:13
# the time the DB container starts
sleep 5
poetry run pytest
docker rm -f sl-test-db