diff --git a/maxscale-system-test/testconnections.cpp b/maxscale-system-test/testconnections.cpp index 2e82d6b4d..45659c4c7 100644 --- a/maxscale-system-test/testconnections.cpp +++ b/maxscale-system-test/testconnections.cpp @@ -363,6 +363,30 @@ TestConnections::TestConnections(int argc, char *argv[]): } } + if ((restart_galera) && (galera)) + { + galera->stop_nodes(); + galera->start_replication(); + } + + if (maxscale::check_nodes) + { + if (repl) + { + if (!repl->fix_replication() ) + { + exit(BROKEN_VM_FAUILT); + } + } + if (galera) + { + if (!galera->fix_replication()) + { + exit(BROKEN_VM_FAUILT); + } + } + } + if (repl) { if (maxscale::required_repl_version.length()) @@ -399,30 +423,6 @@ TestConnections::TestConnections(int argc, char *argv[]): } } - if ((restart_galera) && (galera)) - { - galera->stop_nodes(); - galera->start_replication(); - } - - if (maxscale::check_nodes) - { - if (repl) - { - if (!repl->fix_replication() ) - { - exit(BROKEN_VM_FAUILT); - } - } - if (galera) - { - if (!galera->fix_replication()) - { - exit(BROKEN_VM_FAUILT); - } - } - } - if (maxscale_init) { init_maxscales();