diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2021-05-14 13:20:25 +0200 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2021-05-17 10:23:57 +0200 |
commit | f6c3416c2dbad7bce818f693c7b7662bca156e29 (patch) | |
tree | 945e9524cd3f72bfb55fe66d3ca5e96be68fea13 /tests/auto/positionplugin/plugin.json | |
parent | 47880346bc3b3c7d1e77f9277b578f48a1c599f3 (diff) | |
download | qtlocation-f6c3416c2dbad7bce818f693c7b7662bca156e29.tar.gz |
QGeoPositionInfoSource: fix flaky test
When introducing a dummy.source plugin for the tests, the priority was
selected the same, as for the test.source plugin. As a result, the
algorithm for selecting the default source during the test run could
pick any of them. When dummy.source was picked, the
preferredMethodsBinding test could not execute correctly, because the
dummy.source has different supported positioning methods.
This patch fixes the problem in 2 ways:
* test.source is now directly selected in the preferredMethodsBinding()
test
* the priorities of the dummy.source and test.source plugins are
adjusted in such a way, that test.source is picked if
createDefaultSource() call is used.
Change-Id: Ibec456f4679207a161c2cf97c267055d75bbd03c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/auto/positionplugin/plugin.json')
-rw-r--r-- | tests/auto/positionplugin/plugin.json | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/positionplugin/plugin.json b/tests/auto/positionplugin/plugin.json index a38d2a5a..4e7df0e4 100644 --- a/tests/auto/positionplugin/plugin.json +++ b/tests/auto/positionplugin/plugin.json @@ -4,6 +4,6 @@ "Position": true, "Satellite": false, "Monitor": false, - "Priority": 1, + "Priority": 2, "Testable": true } |