Make the MySQL healthcheck stricter.

This commit is contained in:
Sam Rose 2024-02-15 09:44:01 +00:00
parent 84b1b97d91
commit ad8d1e2598
No known key found for this signature in database
1 changed files with 3 additions and 2 deletions

View File

@ -14,8 +14,9 @@ export async function start(): Promise<StartedTestContainer> {
// run against a MySQL that's mid-restart and fail. To avoid this, we run // 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. // 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 1 &&
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 mysqladmin ping -h localhost -P 3306 -u root -ppassword
` `
) )