summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@pelagicore.com>2019-01-17 10:35:03 +0100
committerRobert Griebl <robert.griebl@pelagicore.com>2019-01-17 11:58:03 +0000
commit36cc2c81b0daf10b7879a925913070e815d10807 (patch)
treecc8459a0bd8dc3d20d7b5d84ab63d8437ec5203b /tests
parent5bca991b07903942fb48450f3e867b5a3c30d1e5 (diff)
downloadqtivi-36cc2c81b0daf10b7879a925913070e815d10807.tar.gz
Fix the flaky QIviSimulationEngine autotest
only expect two signals in the animation test (one intermediate value change and the final value change) Change-Id: I85e6f87ed242935c6cfc7ed0a088862e1392b07d Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/core/qivisimulationengine/tst_qivisimulationengine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/core/qivisimulationengine/tst_qivisimulationengine.cpp b/tests/auto/core/qivisimulationengine/tst_qivisimulationengine.cpp
index 3bd1299..18784ad 100644
--- a/tests/auto/core/qivisimulationengine/tst_qivisimulationengine.cpp
+++ b/tests/auto/core/qivisimulationengine/tst_qivisimulationengine.cpp
@@ -594,8 +594,8 @@ void tst_QIviSimulationEngine::testAnimations()
//Check that the animation has reached it's final value
QCOMPARE(obj->property("propertyInBase"), 130);
- //we expect at least 10 animation steps
- QVERIFY2(spy.count() > 10, qPrintable(QStringLiteral("Emitted signals: ") + QString::number(spy.count())));
+ //we expect at least 2 animation steps (intermediate step and final step)
+ QVERIFY2(spy.count() > 2, qPrintable(QStringLiteral("Emitted signals: ") + QString::number(spy.count())));
}
void tst_QIviSimulationEngine::testFunctionCalls_data()