aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-06-22 16:19:09 +0200
committerGitHub <noreply@github.com>2017-06-22 16:19:09 +0200
commit7ec35f103e2b4aaf806774c9fe6cde2d7312cdb3 (patch)
tree7e50b677e7da9902eb66a5bd08f3cb35efca48c4 /searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
parent7f58f87e70ad0dcdea8ae01962f76b2df36c258f (diff)
Revert "Revert "Balder/do not use your own docidlimit""
Diffstat (limited to 'searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp')
-rw-r--r--searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp b/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
index c0b36dc1441..5811ca9cc4d 100644
--- a/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
+++ b/searchlib/src/tests/attribute/imported_search_context/imported_search_context_test.cpp
@@ -5,8 +5,7 @@
#include <vespa/searchlib/fef/termfieldmatchdata.h>
#include <vespa/searchcommon/attribute/search_context_params.h>
-namespace search {
-namespace attribute {
+namespace search::attribute {
using fef::TermFieldMatchData;
using vespalib::Trinary;
@@ -22,7 +21,7 @@ struct Fixture : ImportedAttributeFixture {
bool strict) {
auto iter = ctx.createIterator(&match, strict);
assert(iter.get() != nullptr);
- iter->initRange(DocId(1), reference_attr->getNumDocs() + 1);
+ iter->initRange(DocId(1), reference_attr->getNumDocs());
return iter;
}
@@ -333,7 +332,6 @@ TEST_F("queryTerm() returns term context was created with", WsetValueFixture) {
EXPECT_EQUAL(std::string("helloworld"), std::string(ctx->queryTerm().getTerm()));
}
-} // attribute
-} // search
+}
TEST_MAIN() { TEST_RUN_ALL(); }