mysql test: use OpenPort check over blind sleep

This commit is contained in:
Graham Christensen 2017-04-25 17:26:52 -04:00
parent 4c171319f5
commit da0ef84c0c
No known key found for this signature in database
GPG key ID: 06121D366FE9435C

View file

@ -56,11 +56,13 @@ in
testScript = ''
$master->start;
$master->waitForUnit("mysql");
$master->waitForOpenPort(3306);
$slave1->start;
$slave2->start;
$slave1->waitForUnit("mysql");
$slave1->waitForOpenPort(3306);
$slave2->waitForUnit("mysql");
$slave2->sleep(100); # Hopefully this is long enough!!
$slave2->waitForOpenPort(3306);
$slave2->succeed("echo 'use testdb; select * from tests' | mysql -u root -N | grep 4");
'';
})