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

@ -12,7 +12,7 @@ void* query_thread(void *data)
{
TestConnections *test = static_cast<TestConnections*>(data);
MYSQL *mysql = test->open_rwsplit_connection();
MYSQL *mysql = test->maxscales->open_rwsplit_connection(0);
my_bool yes = true;
mysql_options(mysql, MYSQL_OPT_RECONNECT, &yes);
@ -85,8 +85,8 @@ int main(int argc, char *argv[])
sleep(1);
test->check_maxscale_alive();
test->check_log_err("Fatal", false);
test->check_maxscale_alive(0);
test->check_log_err(0, "Fatal", false);
int rval = test->global_result;
delete test;
return rval;