Commit 1ddba5ea authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

tests: Folders: Provide a device for new mock directories

parent 158b16a1
......@@ -228,7 +228,8 @@ TEST_F( Folders, NewFolderWithFile )
// Do not watch for live changes
ml.reset();
auto newFolder = std::string(mock::FileSystemFactory::Root) + "newfolder/";
fsMock->addFolder( mock::FileSystemFactory::Root, "newfolder/", time( nullptr ), nullptr );
auto device = std::make_shared<mock::Device>( std::string{ mock::FileSystemFactory::Root } + "newfolder/", "newfolderuuid" );
fsMock->addFolder( mock::FileSystemFactory::Root, "newfolder/", time( nullptr ), device );
fsMock->addFile( newFolder, "newfile.avi" );
// This will trigger a reload
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment