refactored tests (#147)
This commit is contained in:
@ -12,8 +12,8 @@ int main(int argc, char *argv[])
|
||||
Test->set_timeout(20);
|
||||
Test->repl->connect();
|
||||
|
||||
Test->tprintf("Connecting to RWSplit %s\n", Test->maxscale_ip());
|
||||
Test->connect_rwsplit();
|
||||
Test->tprintf("Connecting to RWSplit %s\n", Test->maxscales->ip(0));
|
||||
Test->maxscales->connect_rwsplit(0);
|
||||
|
||||
unsigned int conn_num;
|
||||
unsigned int all_conn = 0;
|
||||
@ -22,7 +22,7 @@ int main(int argc, char *argv[])
|
||||
Test->tprintf("Checking number of connections ot backend servers\n");
|
||||
for (int i = 0; i < Test->repl->N; i++)
|
||||
{
|
||||
conn_num = get_conn_num(Test->repl->nodes[i], Test->maxscale_ip(), Test->maxscale_hostname, (char *) "test");
|
||||
conn_num = get_conn_num(Test->repl->nodes[i], Test->maxscales->ip(0), Test->maxscales->hostname[0], (char *) "test");
|
||||
Test->tprintf("connections: %u\n", conn_num);
|
||||
if ((i == 0) && (conn_num != 1))
|
||||
{
|
||||
@ -37,7 +37,7 @@ int main(int argc, char *argv[])
|
||||
all_conn);
|
||||
}
|
||||
|
||||
Test->close_rwsplit();
|
||||
Test->maxscales->close_rwsplit(0);
|
||||
Test->repl->close_connections();
|
||||
|
||||
int rval = Test->global_result;
|
||||
|
Reference in New Issue
Block a user