Stop keepalived after the tests

Once the tests are done keepalived must be stopped. This is done to
prevent it from affecting other tests.
This commit is contained in:
Markus Mäkelä
2018-11-13 16:35:28 +02:00
parent 07231747bf
commit 54370618bc
4 changed files with 35 additions and 8 deletions

View File

@ -33,6 +33,11 @@ int main(int argc, char* argv[])
exit(0);
}
Test->on_destroy([&](){
Test->maxscales->ssh_node_f(0, true, "service keepalived stop");
Test->maxscales->ssh_node_f(1, true, "service keepalived stop");
});
Test->check_maxscale_alive(0);
Test->check_maxscale_alive(1);