summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp')
-rw-r--r--tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp b/tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp
index a1cb729849..5b142048b5 100644
--- a/tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp
+++ b/tests/auto/widgets/effects/qgraphicseffect/tst_qgraphicseffect.cpp
@@ -365,9 +365,8 @@ void tst_QGraphicsEffect::draw()
// Make sure we update the source when disabling/enabling the effect.
effect->setEnabled(false);
- QTest::qWait(50);
+ QTRY_COMPARE(item->numRepaints, 1);
QCOMPARE(effect->numRepaints, 0);
- QCOMPARE(item->numRepaints, 1);
effect->reset();
item->reset();