Wait for monitor in bug547

The test expects the monitor to respond within 5 seconds. This is not
guaranteed to happen so waiting for a monitor interval instead of a
hard-coded duration provides for a more stable test.
This commit is contained in:
Markus Mäkelä 2018-09-12 14:23:57 +03:00
parent b3e2bf58d9
commit e1f2b81734
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -35,7 +35,7 @@ int main(int argc, char *argv[])
}
Test->set_timeout(30);
sleep(5);
Test->maxscales->wait_for_monitor();
Test->set_timeout(30);
Test->tprintf("Connecting to all MaxScale services, expecting error\n");