Wait two intervals in mysqlmon_failover_rejoin_old_slave

The failover process takes at least two intervals to happen. With only a
single wait, it was down to luck whether the test would succeed.
This commit is contained in:
Markus Mäkelä 2019-01-10 10:01:21 +02:00
parent 6977828f2d
commit 4c61b646a4
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -152,7 +152,7 @@ void run(TestConnections& test)
cout << "\nStopping master." << endl;
test.repl->stop_node(0);
test.maxscales->wait_for_monitor();
test.maxscales->wait_for_monitor(2);
// server1 (previous master) was taken down, so its state should be /Down/.
// server2 should have been made into master, and server4 should still be down.
@ -164,7 +164,7 @@ void run(TestConnections& test)
cout << "\nBringing up slave " << N - 1 << endl;
test.repl->start_node(N - 1, (char*)"");
test.maxscales->wait_for_monitor();
test.maxscales->wait_for_monitor(2);
// server1 should still be down, server2 still master, and server3 still
// a slave. server4 was brought up, so it should have been rejoined and