diff options
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/apps/tests/persistenceconformance_test.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/searchcore/src/apps/tests/persistenceconformance_test.cpp b/searchcore/src/apps/tests/persistenceconformance_test.cpp index 214c57557bc..385d0eb363e 100644 --- a/searchcore/src/apps/tests/persistenceconformance_test.cpp +++ b/searchcore/src/apps/tests/persistenceconformance_test.cpp @@ -178,6 +178,12 @@ private: MockSharedThreadingService _shared_service; storage::spi::dummy::DummyBucketExecutor _bucketExecutor; + static std::shared_ptr<ProtonConfig> make_proton_config() { + ProtonConfigBuilder proton_config; + proton_config.indexing.optimize = ProtonConfigBuilder::Indexing::Optimize::LATENCY; + return std::make_shared<ProtonConfig>(proton_config); + } + public: DocumentDBFactory(const vespalib::string &baseDir, int tlsListenPort); ~DocumentDBFactory() override; @@ -196,7 +202,7 @@ public: TuneFileDocumentDB::SP tuneFileDocDB(new TuneFileDocumentDB()); DocumentDBConfigHelper mgr(spec, docType.getName()); auto b = std::make_shared<BootstrapConfig>(1, factory.getTypeCfg(), factory.getTypeRepo(), - std::make_shared<ProtonConfig>(), + make_proton_config(), std::make_shared<FiledistributorrpcConfig>(), std::make_shared<BucketspacesConfig>(), tuneFileDocDB, HwInfo()); |