Remove some more QTest::qWait(10) calls.
Since it seems to have changed slightly recently. Just use QTRY_COMPARE instead. Change-Id: I802c2e26acf5418bb5904fadd2a978a44fd9eb01 Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
6de7c31040
commit
e241932c97
@@ -1554,10 +1554,7 @@ void tst_QVideoWidget::paintRendererControl()
|
||||
QCOMPARE(surface->isActive(), true);
|
||||
QCOMPARE(surface->isReady(), false);
|
||||
|
||||
//wait up to 2 seconds for the frame to be presented
|
||||
for (int i=0; i<200 && !surface->isReady(); i++)
|
||||
QTest::qWait(10);
|
||||
|
||||
QTRY_COMPARE(surface->isReady(), true);
|
||||
QCOMPARE(surface->isActive(), true);
|
||||
QCOMPARE(surface->isReady(), true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user