Reset failures if auto_failover is disabled

When auto_failover has been disabled due to failure to perform automatic
failover, the test should reset the number of failures. Resetting it
before the check for the log message allows the test to still fail if the
message is missing.
This commit is contained in:
Markus Mäkelä 2018-02-19 11:48:38 +02:00
parent a608b95414
commit e56aedb85f
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -491,6 +491,7 @@ void check_server_statuses(TestConnections& test)
if (masters == 0)
{
test.global_result = 0;
test.tprintf("No master, checking that autofail has been turned off.");
test.log_includes(0, "disabling automatic failover");
}