diff options
Diffstat (limited to 'storage/src/tests/common/teststorageapp.cpp')
-rw-r--r-- | storage/src/tests/common/teststorageapp.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/storage/src/tests/common/teststorageapp.cpp b/storage/src/tests/common/teststorageapp.cpp index 082af954871..9fcf1049e1b 100644 --- a/storage/src/tests/common/teststorageapp.cpp +++ b/storage/src/tests/common/teststorageapp.cpp @@ -140,10 +140,8 @@ namespace { } TestServiceLayerApp::TestServiceLayerApp(vespalib::stringref configId) - : TestStorageApp( - StorageComponentRegisterImpl::UP( - new ServiceLayerComponentRegisterImpl), - lib::NodeType::STORAGE, getIndexFromConfig(configId), configId), + : TestStorageApp(std::make_unique<ServiceLayerComponentRegisterImpl>(true), // TODO remove B-tree flag once default + lib::NodeType::STORAGE, getIndexFromConfig(configId), configId), _compReg(dynamic_cast<ServiceLayerComponentRegisterImpl&>( TestStorageApp::getComponentRegister())), _persistenceProvider(), @@ -157,10 +155,8 @@ TestServiceLayerApp::TestServiceLayerApp(vespalib::stringref configId) TestServiceLayerApp::TestServiceLayerApp(DiskCount dc, NodeIndex index, vespalib::stringref configId) - : TestStorageApp( - StorageComponentRegisterImpl::UP( - new ServiceLayerComponentRegisterImpl), - lib::NodeType::STORAGE, index, configId), + : TestStorageApp(std::make_unique<ServiceLayerComponentRegisterImpl>(true), // TODO remove B-tree flag once default + lib::NodeType::STORAGE, index, configId), _compReg(dynamic_cast<ServiceLayerComponentRegisterImpl&>( TestStorageApp::getComponentRegister())), _persistenceProvider(), |