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

@ -17,11 +17,11 @@ int main(int argc, char *argv[])
TestConnections test(argc, argv);
vector<thread> threads;
for (int i = 0; i < 20; i++)
for (int i = 0; i < 20 && test.global_result == 0; i++)
{
threads.emplace_back([&, i]()
{
while (running)
while (running && test.global_result == 0)
{
MYSQL* c = test.maxscales->open_rwsplit_connection();