mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #27771 from nextcloud/bugfix/noid/autotest-wait-pgsql-docker
Add connection check in autotest.sh for pgsql docker
This commit is contained in:
commit
24a8532393
1 changed files with 4 additions and 2 deletions
|
|
@ -309,8 +309,10 @@ function execute_tests {
|
|||
|
||||
echo "Waiting for Postgres initialisation ..."
|
||||
|
||||
# grep exits on the first match and then the script continues
|
||||
docker logs -f "$DOCKER_CONTAINER_ID" 2>&1 | grep -q "database system is ready to accept connections"
|
||||
if ! apps/files_external/tests/env/wait-for-connection $DATABASEHOST 5432 60; then
|
||||
echo "[ERROR] Waited 60 seconds for $DATABASEHOST, no response" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Postgres is up."
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue