Skip to content

Commit 420ad29

Browse files
authored
Merge pull request #181 from SimonFrings/server_availability
Improve CI workflow to await database
2 parents 99c6366 + 3c2ecb5 commit 420ad29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/wait-for-mysql.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
CONTAINER="mysql"
44
USERNAME="test"
55
PASSWORD="test"
6-
while ! docker exec $CONTAINER mysql --user=$USERNAME --password=$PASSWORD -e "SELECT 1" >/dev/null 2>&1; do
6+
while ! docker exec $CONTAINER mysql --host=127.0.0.1 --port=3306 --user=$USERNAME --password=$PASSWORD -e "SELECT 1" >/dev/null 2>&1; do
77
sleep 1
88
done

0 commit comments

Comments
 (0)