summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/unit/qvideowidget/tst_qvideowidget.cpp')
-rw-r--r--tests/auto/unit/qvideowidget/tst_qvideowidget.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp b/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp
index 5d08a5788..59816b4cb 100644
--- a/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp
+++ b/tests/auto/unit/qvideowidget/tst_qvideowidget.cpp
@@ -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);
}