Skip to content

Commit

Permalink
Merge pull request #181 from SimonFrings/server_availability
Browse files Browse the repository at this point in the history
Improve CI workflow to await database
  • Loading branch information
WyriHaximus authored Nov 6, 2023
2 parents 99c6366 + 3c2ecb5 commit 420ad29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/wait-for-mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
CONTAINER="mysql"
USERNAME="test"
PASSWORD="test"
while ! docker exec $CONTAINER mysql --user=$USERNAME --password=$PASSWORD -e "SELECT 1" >/dev/null 2>&1; do
while ! docker exec $CONTAINER mysql --host=127.0.0.1 --port=3306 --user=$USERNAME --password=$PASSWORD -e "SELECT 1" >/dev/null 2>&1; do
sleep 1
done

0 comments on commit 420ad29

Please sign in to comment.