Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/search
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2015-10-13 14:08:41 +0300
committerYuri Gorshenin <y@maps.me>2015-10-13 14:12:54 +0300
commita1db2850c938d5a983dcd67a87581d0480f614b1 (patch)
tree4172b7bd0deb1181575af0e67cf0aa00a0dec866 /search
parent4f9195930e8fd6d6315155cc95df199f82d74701 (diff)
Fixed TestSearchRequest behavior - results aren't accumulated, the
last list of results is stored.
Diffstat (limited to 'search')
-rw-r--r--search/search_integration_tests/test_search_request.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/search/search_integration_tests/test_search_request.cpp b/search/search_integration_tests/test_search_request.cpp
index 68f0d6b292..ee879cf582 100644
--- a/search/search_integration_tests/test_search_request.cpp
+++ b/search/search_integration_tests/test_search_request.cpp
@@ -39,10 +39,13 @@ vector<search::Result> const & TestSearchRequest::Results() const
void TestSearchRequest::Done(search::Results const & results)
{
lock_guard<mutex> lock(m_mu);
- m_results.insert(m_results.end(), results.Begin(), results.End());
if (results.IsEndMarker())
{
m_done = true;
m_cv.notify_one();
}
+ else
+ {
+ m_results.assign(results.Begin(), results.End());
+ }
}