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

@ -25,17 +25,17 @@ int main(int argc, char *argv[])
char master_ip[100];
Test->connect_maxscale();
Test->maxscales->connect_maxscale(0);
for (int i = 0; i < 100; i++)
{
Test->set_timeout(5);
Test->add_result(find_field(Test->conn_rwsplit, (char *) "SHOW SLAVE STATUS", (char *) "Master_Host",
Test->add_result(find_field(Test->maxscales->conn_rwsplit[0], (char *) "SHOW SLAVE STATUS", (char *) "Master_Host",
master_ip), "Master_host files is not found in the SHOW SLAVE STATUS reply, probably query went to master\n");
Test->add_result(strcmp(master_ip, Test->repl->IP_private[0]), "Master IP is wrong\n");
}
Test->close_maxscale_connections();
Test->maxscales->close_maxscale_connections(0);
int rval = Test->global_result;
delete Test;
return rval;