diff --git a/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp b/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp index 8bd3339de62..3cab4dea829 100644 --- a/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp +++ b/src/plugins/qmlprofiler/tests/flamegraphview_test.cpp @@ -46,7 +46,7 @@ void FlameGraphViewTest::initTestCase() FlameGraphModelTest::generateData(&manager, &aggregator); view.resize(500, 500); view.show(); - QVERIFY(QTest::qWaitForWindowExposed(&view)); + QTRY_VERIFY(QTest::qWaitForWindowExposed(&view)); } void FlameGraphViewTest::testSelection()