Improve false_monitor_state_change

The test uses wait_for_monitor and no longer does the redundant debug
assert check that is covered by the core dump detection.
This commit is contained in:
Markus Mäkelä 2018-11-16 12:09:24 +02:00
parent d60e97dfa5
commit bc8db6d52c
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -12,17 +12,14 @@ int main(int argc, char* argv[])
test.repl->block_node(0);
test.tprintf("Wait for monitor to see it");
sleep(10);
test.maxscales->wait_for_monitor();
test.tprintf("Clear master status");
test.maxscales->ssh_node(0, "maxadmin clear server server1 master", true);
sleep(5);
test.maxscales->wait_for_monitor();
test.repl->unblock_node(0);
sleep(5);
test.check_maxscale_alive(0);
test.check_log_err(0, "debug assert", false);
test.maxscales->wait_for_monitor();
return test.global_result;
}