From 57b5f4b3636487b145d0608a76d92e4fd47fb8f4 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 24 Jul 2018 13:36:33 -0400 Subject: [PATCH] Increase MySQL timeouts --- scripts/ci | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci b/scripts/ci index a5449d22a..192c48bf4 100755 --- a/scripts/ci +++ b/scripts/ci @@ -71,7 +71,7 @@ registry_old() { mysql_ping() { - mysqladmin --connect-timeout=2 --wait=30 --host=127.0.0.1 \ + mysqladmin --connect-timeout=2 --wait=60 --host=127.0.0.1 \ --user=root --password="${MYSQL_ROOT_PASSWORD}" ping } @@ -80,7 +80,7 @@ mysql_start() { docker run --net=host -d -e MYSQL_ROOT_PASSWORD -e MYSQL_USER \ -e MYSQL_PASSWORD -e MYSQL_DATABASE "${MYSQL_IMAGE}" - if ! (sleep 10 && mysql_ping); then + if ! (sleep 20 && mysql_ping); then echo "MySQL failed to respond in time." exit 1 fi