Wait for monitor in mxs1719

Replaced hard-coded sleep with dynamic waiting.
This commit is contained in:
Markus Mäkelä
2018-06-18 12:57:54 +03:00
parent 6df0804e70
commit 45f39e7fdd

View File

@ -75,8 +75,7 @@ int main(int argc, char* argv[])
{
if (test.maxscales->start() == 0)
{
// Give the monitor a few seconds to monitor the servers
sleep(5);
test.maxscales->wait_for_monitor();
if (test.maxscales->connect_rwsplit() == 0)
{