Speed up avrorouter testing

Cut test time from about 300 seconds to 200 seconds.
This commit is contained in:
Markus Mäkelä
2018-06-07 22:46:57 +03:00
parent 8c22131827
commit ba0e3bd6b7
8 changed files with 42 additions and 37 deletions

View File

@ -10,15 +10,14 @@
int main(int argc, char *argv[])
{
int exit_code;
TestConnections::skip_maxscale_start(true);
TestConnections::check_nodes(false);
TestConnections test(argc, argv);
test.set_timeout(600);
test.maxscales->ssh_node(0, (char *) "rm -rf /var/lib/maxscale/avro", true);
/** Start master to binlogrouter replication */
if (!test.replicate_from_master(0))
{
return 1;
}
test.replicate_from_master();
test.set_timeout(120);
test.repl->connect();
@ -75,7 +74,7 @@ int main(int argc, char *argv[])
test.stop_timeout();
execute_query(test.repl->nodes[0], "DROP TABLE test.t1;RESET MASTER");
test.repl->fix_replication();
test.revert_replicate_from_master();
return test.global_result;
}