1
0
Fork 0
mirror of synced 2024-07-02 21:10:43 +12:00

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

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
// 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
`
)