Stabilize tst_QSqlThread::readWriteThreading

According to the test metrics this test failed 10 times in the last two
days. Interestingly the log shows that usually 5.5 seconds would have
let it pass.

Change-Id: I38f21f35bd6624f1d3de1e1e811a4d107136a241
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Jesus Fernandez <Jesus.Fernandez@qt.io>
This commit is contained in:
Frederik Gladhorn 2017-05-11 12:05:59 +02:00 committed by Lars Knoll
parent 9406bef6b3
commit b8094e4b22

View File

@ -398,7 +398,7 @@ void tst_QSqlThread::readWriteThreading()
producer.start();
consumer.start();
QTRY_VERIFY(threadFinishedCount >= 2);
QTRY_VERIFY_WITH_TIMEOUT(threadFinishedCount >= 2, 10000);
}
// run with n threads in parallel. Change this constant to hammer the poor DB server even more