summaryrefslogtreecommitdiffstats
path: root/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/persistence/filestorage/filestormanagertest.cpp')
-rw-r--r--storage/src/tests/persistence/filestorage/filestormanagertest.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/storage/src/tests/persistence/filestorage/filestormanagertest.cpp b/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
index 811b4d60e15..6497f8bb698 100644
--- a/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
+++ b/storage/src/tests/persistence/filestorage/filestormanagertest.cpp
@@ -201,8 +201,12 @@ std::unique_ptr<DiskThread> createThread(vdstestlib::DirConfig& config,
uint16_t deviceIndex)
{
(void) config;
- return std::make_unique<PersistenceThread>(nullptr,node.getComponentRegister(), config.getConfigId(),
- provider, filestorHandler, metrics, deviceIndex);
+ std::unique_ptr<DiskThread> disk;
+ disk.reset(new PersistenceThread(
+ node.getComponentRegister(), config.getConfigId(), provider,
+ filestorHandler, metrics,
+ deviceIndex));
+ return disk;
}
namespace {