diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-17 10:12:38 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2023-01-17 10:12:38 +0000 |
commit | 162240c752f7872841e2bf6c4273d7a753319be8 (patch) | |
tree | 45f59795e53dc25e2a27f290a700fe3c67457fac /searchcore/src/tests/proton/matching | |
parent | 319cbde398f507748601346b0ee49148330fc19c (diff) |
- Remove the explicit close method in SessionManager. Just do it in destructor instead.
- Destruct instead of close. Works even if it has not been constructed.
- Minor code cleanup.
Diffstat (limited to 'searchcore/src/tests/proton/matching')
-rw-r--r-- | searchcore/src/tests/proton/matching/matching_test.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/searchcore/src/tests/proton/matching/matching_test.cpp b/searchcore/src/tests/proton/matching/matching_test.cpp index ca689d4c4c6..fd6f6af730c 100644 --- a/searchcore/src/tests/proton/matching/matching_test.cpp +++ b/searchcore/src/tests/proton/matching/matching_test.cpp @@ -126,16 +126,16 @@ struct EmptyRankingAssetsRepo : public proton::matching::IRankingAssetsRepo { //----------------------------------------------------------------------------- struct MyWorld { - Schema schema; - Properties config; - FakeSearchContext searchContext; - MockAttributeContext attributeContext; - SessionManager::SP sessionManager; - DocumentMetaStore metaStore; - MatchingStats matchingStats; - vespalib::TestClock clock; - QueryLimiter queryLimiter; - EmptyRankingAssetsRepo constantValueRepo; + Schema schema; + Properties config; + FakeSearchContext searchContext; + MockAttributeContext attributeContext; + std::shared_ptr<SessionManager> sessionManager; + DocumentMetaStore metaStore; + MatchingStats matchingStats; + vespalib::TestClock clock; + QueryLimiter queryLimiter; + EmptyRankingAssetsRepo constantValueRepo; MyWorld(); ~MyWorld(); |