From 6bdaa5c6fd2b5dd79310fec5c7bb1433acd7387e Mon Sep 17 00:00:00 2001 From: Sander Vocke Date: Fri, 4 Sep 2020 17:12:49 +0200 Subject: [PATCH] Again. --- server/test/test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/test/test.sh b/server/test/test.sh index 3093795..dc7e7d9 100755 --- a/server/test/test.sh +++ b/server/test/test.sh @@ -8,7 +8,7 @@ SCRIPTPATH=`dirname $SCRIPT` SOURCEPATH="$SCRIPTPATH/.." SQLITE_CONFIG='{"client": "sqlite3", "connection": ":memory:"}' -POSTGRES_CONFIG='{"client":"pg","connection":{"host":"localhost","port":9432,"user":"mudbase","password":"mudbase","database":"mudbase"}}' +POSTGRES_CONFIG='{"client":"pg","connection":{"host":"localhost","port":5432,"user":"mudbase","password":"mudbase","database":"mudbase"}}' DO_SQLITE= DO_POSTGRES= @@ -70,13 +70,13 @@ if [ ! -z "${DO_POSTGRES}" ]; then --env POSTGRES_USER=mudbase \ --env POSTGRES_PASSWORD=mudbase \ --env POSTGRES_DB=mudbase \ - -p 9432:5432 \ + -p 5432:5432 \ postgres:12) docker start ${CONTAINERID} trap "docker stop ${CONTAINERID}" EXIT # Wait for postgres to be ready. while true; do - pg_isready -d mudbase -h localhost -p 9432 -U mudbase + pg_isready -d mudbase -h localhost -p 5432 -U mudbase [ "$(echo $?)" == "0" ] && break sleep 1 done