From c50e7978d4087240ef59236e08c224be619808fa Mon Sep 17 00:00:00 2001 From: Aaron McCarthy Date: Wed, 26 Feb 2014 10:44:48 +1000 Subject: Fix unstable PositionInfo test. The speed reported by the position source can vary due to the system load and scheduling during the test. Increase the tolerence. Change-Id: I26c0e6a9c19cfe73f7c1c24b133dbd3cc5abc04e Reviewed-by: Alex Blasche --- tests/auto/declarative_core/tst_positionsource.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/auto/declarative_core/tst_positionsource.qml b/tests/auto/declarative_core/tst_positionsource.qml index bf393ee5..9984e783 100644 --- a/tests/auto/declarative_core/tst_positionsource.qml +++ b/tests/auto/declarative_core/tst_positionsource.qml @@ -162,8 +162,7 @@ TestCase { compare(directionSpy.count, 2) fuzzyCompare(testingSource.position.direction, 45, 0.1) verify(testingSource.position.speedValid) - console.log("Speed:", testingSource.position.speed) - verify(testingSource.position.speed > 15000) + verify(testingSource.position.speed > 10000) testingSource.active = false; wait(2500); @@ -174,6 +173,6 @@ TestCase { compare(directionSpy.count, 2) fuzzyCompare(testingSource.position.direction, 45, 0.1) verify(testingSource.position.speedValid) - verify(testingSource.position.speed > 15000) + verify(testingSource.position.speed > 10000) } } -- cgit v1.2.1