Files
MaxScale/maxscale-system-test/false_monitor_state_change.cpp
Markus Mäkelä bc8db6d52c 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.
2018-11-19 20:02:11 +02:00

26 lines
603 B
C++

/**
* Test false server state changes when manually clearing master bit
*/
#include "testconnections.h"
int main(int argc, char* argv[])
{
TestConnections test(argc, argv);
test.tprintf("Block master");
test.repl->block_node(0);
test.tprintf("Wait for monitor to see it");
test.maxscales->wait_for_monitor();
test.tprintf("Clear master status");
test.maxscales->ssh_node(0, "maxadmin clear server server1 master", true);
test.maxscales->wait_for_monitor();
test.repl->unblock_node(0);
test.maxscales->wait_for_monitor();
return test.global_result;
}