Wait for monitor to start in mxs1719

The test starts MaxScale and immediately connects to it. As the monitoring
is asynchronous, we need to give it a few seconds to stabilize.
This commit is contained in:
Markus Mäkelä
2018-03-31 20:21:24 +03:00
parent f743e99795
commit 9291815bcd
2 changed files with 4 additions and 0 deletions

View File

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