From adf2f32a243ec362a0c87fbf6f3b6518438577dd Mon Sep 17 00:00:00 2001 From: Yuri Gorshenin Date: Thu, 30 Jul 2015 10:48:55 +0300 Subject: [PATCH] [search] Fixed failing retrieval's test. --- search/integration_tests/retrieval_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/search/integration_tests/retrieval_test.cpp b/search/integration_tests/retrieval_test.cpp index 08511a1f7b..fc1361c128 100644 --- a/search/integration_tests/retrieval_test.cpp +++ b/search/integration_tests/retrieval_test.cpp @@ -219,14 +219,14 @@ UNIT_TEST(Retrieval_3Mwms) } { - TestCallback callback(mskHandle.GetId()); + MultiMwmCallback callback({mskHandle.GetId(), mtvHandle.GetId(), zrhHandle.GetId()}); search::Retrieval::Limits limits; limits.SetMaxNumFeatures(10 /* more than total number of features in all these mwms */); retrieval.Init(index, m2::RectD(m2::PointD(-1.0, -1.0), m2::PointD(1.0, 1.0)), params, limits); retrieval.Go(callback); - TEST(callback.WasTriggered(), ()); - TEST_EQUAL(callback.Offsets().size(), 3 /* total number of features in all these mwms */, ()); + TEST_EQUAL(3 /* total number of mwms */, callback.GetNumMwms(), ()); + TEST_EQUAL(3 /* total number of features in all these mwms */, callback.GetNumFeatures(), ()); } {