Fix tests by introducing a delay

This patch should fix current failing builds by adding a 30 seconds
delay between the container starting and the tests starting to run, so
that database migrations and alike can take place.

Currently the tests are running directly after the container was
started, which results in failing HTTP request. This can be explained by
a not-yet-ready hedgedoc instance as it's probably still doing the
database migrations and getting up for the first start.
Signed-off-by: 's avatarSheogorath <sheogorath@shivering-isles.com>
parent a16235e6
......@@ -17,3 +17,5 @@ PORT=$(( $(shuf -e $(seq 0 9999) | head -n1) + 10000 ))
# Run container in a simple way
docker ps -f id=$(docker run -d --name hedgedoc --network postgres -p 127.0.0.1:${PORT}:3000 -e "CMD_DB_URL=postgres://hedgedoc:password@database:5432/hedgedoc" hedgedoc)
sleep 30
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment