Fix verify_master_failure

The test expected the wrong error message to be in the log. To better cope
with changes in the text, the test now uses a regular expression to do the
matching.
This commit is contained in:
Markus Mäkelä
2017-11-13 15:47:25 +02:00
parent f41111b4bd
commit fca11f992a
3 changed files with 35 additions and 2 deletions

View File

@ -13,11 +13,12 @@ int main(int argc, char *argv[])
test.tprintf("Blocking master and checking that master failure is delayed at least once.");
test.repl->block_node(0);
sleep(5);
test.check_log_err("delaying failover", true);
test.log_includes("delaying.*failover");
test.tprintf("Waiting to see if failover is performed.");
sleep(10);
test.check_log_err("Performing failover", true);
test.log_includes("Performing.*failover");
// TODO: Extend the test