From e56aedb85f57bbeb0fc174767cec05c630a5a47e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 19 Feb 2018 11:48:38 +0200 Subject: [PATCH] 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. --- maxscale-system-test/mysqlmon_failover_stress.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/maxscale-system-test/mysqlmon_failover_stress.cpp b/maxscale-system-test/mysqlmon_failover_stress.cpp index 6ccb6d8a2..d639daf1f 100755 --- a/maxscale-system-test/mysqlmon_failover_stress.cpp +++ b/maxscale-system-test/mysqlmon_failover_stress.cpp @@ -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"); }