aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-08-13 15:14:29 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-08-13 15:38:58 +0000
commit7bf5c4d363334993135f9edf77d9bbed306d03e4 (patch)
treefff4671819427a68568239479b0c86e2630a699a /searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp
parenteb7242e20b41625bf5416897ab28ffcf06a68487 (diff)
Use a vector backed set for speed.
Diffstat (limited to 'searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp')
-rw-r--r--searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp b/searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp
index ed4c8938aa1..d941a9f35b7 100644
--- a/searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp
+++ b/searchcore/src/tests/proton/document_iterator/document_iterator_test.cpp
@@ -757,9 +757,7 @@ TEST("require that document selection and timestamp range works together") {
}
TEST("require that fieldset limits fields returned") {
- document::Field::Set fields;
- fields.insert(&getDocType().getField("header"));
- document::FieldCollection limited(getDocType(), std::move(fields));
+ document::FieldCollection limited(getDocType(), document::Field::Set::Builder().insert(&getDocType().getField("header")).build());
DocumentIterator itr(bucket(5), limited, selectAll(), newestV(), -1, false);
itr.add(doc_with_fields("id:ns:foo::xxx1", Timestamp(1), bucket(5)));
IterateResult res = itr.iterate(largeNum);