summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@jollamobile.com>2014-02-26 10:44:48 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-26 08:34:20 +0100
commitc50e7978d4087240ef59236e08c224be619808fa (patch)
tree3df6d4988ae857515e882b7d17e49805132e42a0
parent6b3defc1ebd54e87efeea7e0fb545c62b26bb85d (diff)
downloadqtlocation-c50e7978d4087240ef59236e08c224be619808fa.tar.gz
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 <alexander.blasche@digia.com>
-rw-r--r--tests/auto/declarative_core/tst_positionsource.qml5
1 files 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)
}
}