Skip to content

Commit

Permalink
fix host
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Wingerberg committed Nov 10, 2024
1 parent 93ac233 commit d5ad6ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/prepare_mysql.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -x

mysql_host=$(env | grep PORT_3306_TCP_ADDR | cut -d "=" -f 2)
mysql_host=$(env | grep "WP_SVC_.*DATABASE_MYSQL_SERVICE_HOST" | cut -d "=" -f 2)
echo "Waiting for mysql to launch on ${mysql_host}:3306..."

timeout 22 bash -c 'until printf "" 2>>/dev/null >>/dev/tcp/$0/$1; do sleep 1; done' "${mysql_host}" 3306
Expand Down
2 changes: 1 addition & 1 deletion test/test_mysql_pw.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

mysql_host=$(env | grep PORT_3306_TCP_ADDR | cut -d "=" -f 2)
mysql_host=$(env | grep "WP_SVC_.*DATABASE_MYSQL_SERVICE_HOST" | cut -d "=" -f 2)
echo "Waiting for mysql to launch on ${mysql_host}:3306..."

timeout 22 bash -c 'until printf "" 2>>/dev/null >>/dev/tcp/$0/$1; do sleep 1; done' "${mysql_host}" 3306
Expand Down

0 comments on commit d5ad6ee

Please sign in to comment.