summaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/matching/matching_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/matching/matching_test.cpp')
-rw-r--r--searchcore/src/tests/proton/matching/matching_test.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/searchcore/src/tests/proton/matching/matching_test.cpp b/searchcore/src/tests/proton/matching/matching_test.cpp
index 130fb29c289..b59384f1493 100644
--- a/searchcore/src/tests/proton/matching/matching_test.cpp
+++ b/searchcore/src/tests/proton/matching/matching_test.cpp
@@ -394,10 +394,9 @@ struct MyWorld {
SearchReply::UP performSearch(const SearchRequest & req, size_t threads) {
Matcher::SP matcher = createMatcher();
- SearchSession::OwnershipBundle owned_objects;
- owned_objects.search_handler = std::make_shared<MySearchHandler>(matcher);
- owned_objects.context = std::make_unique<MatchContext>(std::make_unique<MockAttributeContext>(),
- std::make_unique<FakeSearchContext>());
+ SearchSession::OwnershipBundle owned_objects({std::make_unique<MockAttributeContext>(),
+ std::make_unique<FakeSearchContext>()},
+ std::make_shared<MySearchHandler>(matcher));
vespalib::SimpleThreadBundle threadBundle(threads);
SearchReply::UP reply = matcher->match(req, threadBundle, searchContext, attributeContext,
*sessionManager, metaStore, metaStore.getBucketDB(),