summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit
diff options
context:
space:
mode:
authorVaL Doroshchuk <valentyn.doroshchuk@qt.io>2020-02-28 12:32:12 +0100
committerVaL Doroshchuk <valentyn.doroshchuk@qt.io>2020-03-02 11:55:31 +0000
commite27ba234274a2a3325241db58a3da908952c603a (patch)
tree7b62c03afd44fb32ec217f5fe54257c194ff54a7 /tests/auto/unit
parentb147c5ddc9f741e15c4db2c33ebad1af59d12fb3 (diff)
Increase margin of error in tst_QMediaObject::notifySignals()
From 50% to 200%. Change-Id: Ie2ce859ceba513eede63ab6c55cd5637916a48be Fixes: QTBUG-82582 Reviewed-by: Asmo Saarela <asmo.saarela@qt.io> Reviewed-by: Andy Shaw <andy.shaw@qt.io> (cherry picked from commit a7f0ba8c2d64dcb942069a6fd5ea17166b3b7a6d)
Diffstat (limited to 'tests/auto/unit')
-rw-r--r--tests/auto/unit/qmediaobject/tst_qmediaobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/unit/qmediaobject/tst_qmediaobject.cpp b/tests/auto/unit/qmediaobject/tst_qmediaobject.cpp
index d2b43c56d..bf8704162 100644
--- a/tests/auto/unit/qmediaobject/tst_qmediaobject.cpp
+++ b/tests/auto/unit/qmediaobject/tst_qmediaobject.cpp
@@ -299,7 +299,7 @@ void tst_QMediaObject::notifySignals()
QTRY_COMPARE(spy.count(), count);
qint64 elapsed = timer.elapsed();
- int expectedElapsed = count * interval * 1.5; // give it some margin of error
+ int expectedElapsed = count * interval * 3; // give it some margin of error
QVERIFY2(elapsed < expectedElapsed, QString("elapsed: %1, expected: %2").arg(elapsed).arg(expectedElapsed).toLocal8Bit().constData());
}