Check for failover turned off if failover stress tests fails

If there are no masters at the end of the test, it suggests the
auto failover has been turned off. Check that.
This commit is contained in:
Johan Wikman
2018-02-12 16:24:38 +02:00
parent 062da5c956
commit b468f2f639

View File

@ -488,6 +488,16 @@ void check_server_statuses(TestConnections& test)
masters += check_server_status(test, 2);
masters += check_server_status(test, 3);
masters += check_server_status(test, 4);
if (masters == 0)
{
test.tprintf("No master, checking that autofail has been turned off.");
test.log_includes(0, "disabling automatic failover");
}
else if (masters != 1)
{
test.assert(!true, "Unexpected number of masters: %d", masters);
}
}
void run(TestConnections& test)