Remove unnecessary sleeps from mxs812_2
The 20 second sleep was not needed. Using wait_for_monitor is better since it makes sure the blocking of the nodes is visible.
This commit is contained in:
parent
c6e51e7513
commit
b2d1a5b91b
@ -76,12 +76,12 @@ int main(int argc, char* argv[])
|
||||
|
||||
for (int i = 0; i < iter; i++)
|
||||
{
|
||||
sleep(5);
|
||||
Test->tprintf("Blocking master");
|
||||
Test->repl->block_node(0);
|
||||
sleep(5);
|
||||
Test->maxscales->wait_for_monitor();
|
||||
Test->tprintf("Unblocking master");
|
||||
Test->repl->unblock_node(0);
|
||||
Test->maxscales->wait_for_monitor();
|
||||
}
|
||||
|
||||
running = false;
|
||||
@ -93,12 +93,11 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
|
||||
Test->stop_timeout();
|
||||
sleep(20);
|
||||
|
||||
Test->check_maxscale_alive(0);
|
||||
Test->check_current_operations(0, 0);
|
||||
|
||||
int rval = Test->global_result;
|
||||
delete Test;
|
||||
|
||||
return rval;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user