diff options
author | abcd <amos.choy@nokia.com> | 2012-07-30 13:54:48 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-02 07:16:28 +0200 |
commit | 29760b127b4f4a6de8d178f6049b05f1c338ffb0 (patch) | |
tree | a97abb21ddea3d3a3ea3be85867cff3164092de0 /tests/auto/nokia_services | |
parent | f5c58c6a3d77aeee1f8d3bc152aa3731efefac0e (diff) | |
download | qtlocation-29760b127b4f4a6de8d178f6049b05f1c338ffb0.tar.gz |
Fix incorrect error code during recommendation search
Previously a CommunicationError was returned if the id did not exist,
this was because an incorrect id would result in a non-esistent URL
being used. Now we make the assumption that if the URL content is not
found, then it must be because the id did not exist. In such a case
we can return a PlaceDoesNotExistError.
Change-Id: I50ddacb2341639dd6e227e795cefc5e92eea3d6e
Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'tests/auto/nokia_services')
-rw-r--r-- | tests/auto/nokia_services/places_semiauto/tst_places.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/nokia_services/places_semiauto/tst_places.cpp b/tests/auto/nokia_services/places_semiauto/tst_places.cpp index 6d2e223a..f0f9cf1b 100644 --- a/tests/auto/nokia_services/places_semiauto/tst_places.cpp +++ b/tests/auto/nokia_services/places_semiauto/tst_places.cpp @@ -346,7 +346,7 @@ void tst_QPlaceManagerNokia::recommendations_data() << QString() << QGeoShape() << QList<QPlaceCategory>() - << QPlaceReply::CommunicationError; + << QPlaceReply::PlaceDoesNotExistError; QTest::newRow("search for recommendations with id and search term") << QString(AuvergneEmbassyId) |