diff options
author | Yuri Gorshenin <y@maps.me> | 2015-10-13 14:08:41 +0300 |
---|---|---|
committer | Yuri Gorshenin <y@maps.me> | 2015-10-13 14:12:54 +0300 |
commit | a1db2850c938d5a983dcd67a87581d0480f614b1 (patch) | |
tree | 4172b7bd0deb1181575af0e67cf0aa00a0dec866 /search/search_integration_tests/test_search_request.cpp | |
parent | 4f9195930e8fd6d6315155cc95df199f82d74701 (diff) |
Fixed TestSearchRequest behavior - results aren't accumulated, the
last list of results is stored.
Diffstat (limited to 'search/search_integration_tests/test_search_request.cpp')
-rw-r--r-- | search/search_integration_tests/test_search_request.cpp | 5 |
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()); + } } |