Use sleeps and waits with mxs1719

Going the belt-and-suspenders way of both sleeping and waiting for the
moitor should make sure MaxScale has at least some time to start up, query
the servers and do a single iteration of monitoring.
This commit is contained in:
Markus Mäkelä 2018-06-18 21:34:18 +03:00
parent d9cc65cca7
commit d22a62c0ff
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -75,6 +75,7 @@ int main(int argc, char* argv[])
{
if (test.maxscales->start() == 0)
{
sleep(10);
test.maxscales->wait_for_monitor();
if (test.maxscales->connect_rwsplit() == 0)