summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@qt.io>2017-05-11 12:05:59 +0200
committerLars Knoll <lars.knoll@qt.io>2017-05-18 21:18:02 +0000
commitb8094e4b22412ba76d577b93300ee28b3302d959 (patch)
treef29676cee5ca8db578c27d1ac6fc40519a464df2 /tests/auto
parent9406bef6b33b1b9c2d8bb64200266a8449eced4a (diff)
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>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp b/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp
index 540f317935..c21223886a 100644
--- a/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp
+++ b/tests/auto/sql/kernel/qsqlthread/tst_qsqlthread.cpp
@@ -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