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

@ -179,29 +179,14 @@ static TestConnections *Test;
int main(int argc, char *argv[])
{
TestConnections::skip_maxscale_start(true);
TestConnections::check_nodes(false);
Test = new TestConnections(argc, argv);
Test->set_timeout(600);
Test->maxscales->stop_maxscale(0);
// Remove old data files
Test->maxscales->ssh_node_f(0, true, "rm -rf /var/lib/maxscale/avro;");
Test->repl->connect();
execute_query(Test->repl->nodes[0], "DROP TABLE IF EXISTS t1;");
Test->repl->close_connections();
sleep(5);
Test->start_binlog(0);
Test->set_timeout(120);
Test->maxscales->stop_maxscale(0);
Test->maxscales->ssh_node(0, "rm -rf /var/lib/maxscale/avro", true);
Test->set_timeout(120);
Test->maxscales->start_maxscale(0);
Test->replicate_from_master();
Test->set_timeout(60);
Test->repl->connect();
@ -225,6 +210,7 @@ int main(int argc, char *argv[])
pthread_join(thread, NULL);
int rval = Test->global_result;
Test->revert_replicate_from_master();
delete Test;
return rval;
}