aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
diff options
context:
space:
mode:
authorHaavard <havardpe@yahoo-inc.com>2017-06-27 12:30:04 +0000
committerHaavard <havardpe@yahoo-inc.com>2017-06-27 12:30:04 +0000
commit81e6d66251b980bb275e5ae19dcdbe44929dabae (patch)
treef590452327c15520369ec0f354f5ac9034b3a042 /searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
parentf7906fd2c5c6d47613ed19cb81bc841726a2ebad (diff)
set docid limit appropriately
Diffstat (limited to 'searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp')
-rw-r--r--searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp b/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
index 4fcf7d37118..9259f6ccd08 100644
--- a/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
+++ b/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
@@ -197,14 +197,15 @@ assertActiveLids(const BoolVector &exp, const SingleValueBitNumericAttribute &ac
}
bool
-assertBlackList(const SimpleResult &exp, Blueprint::UP blackListBlueprint, bool strict)
+assertBlackList(const SimpleResult &exp, Blueprint::UP blackListBlueprint, bool strict,
+ uint32_t docIdLimit = 8)
{
MatchDataLayout mdl;
MatchData::UP md = mdl.createMatchData();
blackListBlueprint->fetchPostings(strict);
SearchIterator::UP sb = blackListBlueprint->createSearch(*md, strict);
SimpleResult act;
- act.searchStrict(*sb, blackListBlueprint->get_docid_limit());
+ act.searchStrict(*sb, docIdLimit);
return EXPECT_EQUAL(exp, act);
}