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

@ -181,7 +181,7 @@ int main(int argc, char *argv[])
get_global_status_allnodes(&selects[0], &inserts[0], Test->repl, silent);
for (i = 0; i < 100; i++)
for (i = 0; i < 100 && Test->global_result == 0; i++)
{
Test->set_timeout(20);
Test->try_query(Test->maxscales->conn_rwsplit[0], "select * from t1;");
@ -200,7 +200,7 @@ int main(int argc, char *argv[])
get_global_status_allnodes(&selects[0], &inserts[0], Test->repl, silent);
Test->tprintf("Doing 100 inserts\n");
for (i = 0; i < 100; i++)
for (i = 0; i < 100 && Test->global_result == 0; i++)
{
Test->set_timeout(20);
Test->try_query(Test->maxscales->conn_rwsplit[0], "insert into t1 values(1);");