refactored tests (#147)

This commit is contained in:
Timofey Turenko
2017-12-08 12:23:04 +02:00
committed by GitHub
parent c6daf8c26b
commit 3c88bf1ec6
253 changed files with 5265 additions and 3649 deletions

View File

@ -14,9 +14,9 @@ int main(int argc, char *argv[])
Test->set_timeout(30);
Test->tprintf("set global max_connections = 2000");
Test->connect_maxscale();
Test->try_query(Test->conn_rwsplit, (char *) "set global max_connections = 2000;\n");
Test->close_maxscale_connections();
Test->maxscales->connect_maxscale(0);
Test->try_query(Test->maxscales->conn_rwsplit[0], (char *) "set global max_connections = 2000;\n");
Test->maxscales->close_maxscale_connections(0);
Test->tprintf("Trying %d connections\n", connections);
Test->add_result(Test->create_connections(connections, true, true, true, false),
@ -24,12 +24,12 @@ int main(int argc, char *argv[])
Test->set_timeout(30);
Test->tprintf("set global max_connections = 100");
Test->connect_maxscale();
Test->try_query(Test->conn_rwsplit, (char *) "set global max_connections = 100;\n");
Test->close_maxscale_connections();
Test->maxscales->connect_maxscale(0);
Test->try_query(Test->maxscales->conn_rwsplit[0], (char *) "set global max_connections = 100;\n");
Test->maxscales->close_maxscale_connections(0);
Test->tprintf("Checking if Maxscale alive\n");
Test->check_maxscale_alive();
Test->check_maxscale_alive(0);
int rval = Test->global_result;
delete Test;