aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-06-27 16:33:11 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-07-25 12:21:31 +0200
commit6a10521232276152f7ec6989330312ac6fae645d (patch)
tree281238428271e9473c9352ade504cd5b58ca9d3f /searchcore
parentfdca1a83347452c1f3d46503f5042583d48aaa6c (diff)
Call setDocId explicit in test instead.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp b/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
index 9259f6ccd08..bc17a698536 100644
--- a/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
+++ b/searchcore/src/tests/proton/documentmetastore/documentmetastore_test.cpp
@@ -197,12 +197,13 @@ assertActiveLids(const BoolVector &exp, const SingleValueBitNumericAttribute &ac
}
bool
-assertBlackList(const SimpleResult &exp, Blueprint::UP blackListBlueprint, bool strict,
- uint32_t docIdLimit = 8)
+assertBlackList(const SimpleResult &exp, Blueprint::UP blackListBlueprint, bool strict, uint32_t docIdLimit)
{
MatchDataLayout mdl;
MatchData::UP md = mdl.createMatchData();
blackListBlueprint->fetchPostings(strict);
+ blackListBlueprint->setDocIdLimit(docIdLimit);
+
SearchIterator::UP sb = blackListBlueprint->createSearch(*md, strict);
SimpleResult act;
act.searchStrict(*sb, docIdLimit);
@@ -1057,12 +1058,12 @@ TEST("requireThatBlackListBlueprintIsCreated")
f.addGlobalIds();
f.dms.setBucketState(f.bid1, true);
- EXPECT_TRUE(assertBlackList(SimpleResult().addHit(3).addHit(6).addHit(7),
- f.dms.createBlackListBlueprint(), true));
+ EXPECT_TRUE(assertBlackList(SimpleResult().addHit(3).addHit(6).addHit(7), f.dms.createBlackListBlueprint(),
+ true, f.dms.getCommittedDocIdLimit()));
f.dms.setBucketState(f.bid2, true);
- EXPECT_TRUE(assertBlackList(SimpleResult(),
- f.dms.createBlackListBlueprint(), true));
+ EXPECT_TRUE(assertBlackList(SimpleResult(), f.dms.createBlackListBlueprint(),
+ true, f.dms.getCommittedDocIdLimit()));
}
TEST("requireThatDocumentAndMetaEntryCountIsUpdated")