From 2a888bc3fb72069e735faad42e8325f60a5d7412 Mon Sep 17 00:00:00 2001 From: VaL Doroshchuk Date: Tue, 17 Mar 2020 12:44:38 +0100 Subject: tst_QMediaObject: Remove checking of expected elapsed time It is often failed on CI when no enough resources. Task-number: QTBUG-82582 Change-Id: Ibcddab73e6dfd24c3ab064ed8ea89843ebdc92ea Reviewed-by: Paul Wicking (cherry picked from commit d5d42a24b5b9d2079d584defac70aef1a1feadef) --- tests/auto/unit/qmediaobject/tst_qmediaobject.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'tests/auto') diff --git a/tests/auto/unit/qmediaobject/tst_qmediaobject.cpp b/tests/auto/unit/qmediaobject/tst_qmediaobject.cpp index bf8704162..f1d5cc327 100644 --- a/tests/auto/unit/qmediaobject/tst_qmediaobject.cpp +++ b/tests/auto/unit/qmediaobject/tst_qmediaobject.cpp @@ -297,10 +297,6 @@ void tst_QMediaObject::notifySignals() timer.start(); QTRY_COMPARE(spy.count(), count); - - qint64 elapsed = timer.elapsed(); - 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()); } void tst_QMediaObject::notifyInterval_data() -- cgit v1.2.3