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

@ -13,7 +13,7 @@ int main(int argc, char *argv[])
int iterations = 5000;
test.tprintf("Executing `SELECT REPEAT('a', X );` for X = 0..%d with a stride of 7", iterations);
test.connect_maxscale();
test.maxscales->connect_maxscale(0);
for (int i = 1; i < iterations; i += 7)
{
@ -21,10 +21,10 @@ int main(int argc, char *argv[])
sprintf(str, "SELECT REPEAT('a',%d)", i);
test.set_timeout(15);
test.try_query(test.conn_rwsplit, str);
test.try_query(test.maxscales->conn_rwsplit[0], str);
}
test.close_maxscale_connections();
test.maxscales->close_maxscale_connections(0);
return test.global_result;
}