Reduce test verbosity on failure

The tests should stop attempting any queries after the first failure.
This commit is contained in:
Markus Mäkelä
2018-08-01 15:59:30 +03:00
parent 359f61c73b
commit 9e084753b0
3 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ int main(int argc, char *argv[])
for (int j = 0; j < r; j++)
{
for (int i = 0; i < iterations; i++)
for (int i = 0; i < iterations && Test->global_result == 0; i++)
{
Test->set_timeout(10);
Test->try_query(Test->maxscales->routers[0][j], (char*) "set autocommit=0;");