From ad8d1e25988c46f2c0f0d2e061b72892e3d24962 Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Thu, 15 Feb 2024 09:44:01 +0000 Subject: [PATCH] Make the MySQL healthcheck stricter. --- packages/server/src/integrations/tests/utils/mysql.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/server/src/integrations/tests/utils/mysql.ts b/packages/server/src/integrations/tests/utils/mysql.ts index 2c44dd1373..474819287e 100644 --- a/packages/server/src/integrations/tests/utils/mysql.ts +++ b/packages/server/src/integrations/tests/utils/mysql.ts @@ -14,8 +14,9 @@ export async function start(): Promise { // run against a MySQL that's mid-restart and fail. To avoid this, we run // the ping command three times with a small delay between each. ` - mysqladmin ping -h localhost -P 3306 -u root -ppassword && sleep 0.5 && - mysqladmin ping -h localhost -P 3306 -u root -ppassword && sleep 0.5 && + mysqladmin ping -h localhost -P 3306 -u root -ppassword && sleep 1 && + mysqladmin ping -h localhost -P 3306 -u root -ppassword && sleep 1 && + mysqladmin ping -h localhost -P 3306 -u root -ppassword && sleep 1 && mysqladmin ping -h localhost -P 3306 -u root -ppassword ` )