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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user