aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp')
-rw-r--r--searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp b/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
index a5e7aec421b..d72ddc5a2a8 100644
--- a/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
+++ b/searchcore/src/tests/proton/documentdb/document_subdbs/document_subdbs_test.cpp
@@ -21,6 +21,7 @@ LOG_SETUP("document_subdbs_test");
#include <vespa/vespalib/io/fileutil.h>
#include <vespa/vespalib/test/insertion_operators.h>
#include <vespa/vespalib/testkit/test_kit.h>
+#include <vespa/vespalib/util/mock_hw_info.h>
#include <iostream>
@@ -127,6 +128,7 @@ struct MyStoreOnlyContext
MyFileHeaderContext _fileHeader;
LegacyDocumentDBMetrics _metrics;
vespalib::Lock _configLock;
+ std::shared_ptr<vespalib::IHwInfo> _hwInfo;
StoreOnlyContext _ctx;
MyStoreOnlyContext(IThreadingService &writeService,
ThreadStackExecutorBase &summaryExecutor,
@@ -139,6 +141,7 @@ struct MyStoreOnlyContext
_fileHeader(),
_metrics(DOCTYPE_NAME, 1),
_configLock(),
+ _hwInfo(std::make_shared<vespalib::MockHwInfo>()),
_ctx(_owner,
_syncProxy,
_getSerialNum,
@@ -148,7 +151,8 @@ struct MyStoreOnlyContext
bucketDB,
bucketDBHandlerInitializer,
_metrics,
- _configLock)
+ _configLock,
+ _hwInfo)
{
}
const MySubDBOwner &getOwner() const {