Commit c4c80b74 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

tests: devices: Ensure remounting a device is functionnal

parent 0f2184aa
......@@ -158,6 +158,19 @@ TEST_F( DeviceFs, UnmountDisk )
media = ml->media( RemovableDeviceMountpoint + "removablefile.mp3" );
ASSERT_EQ( nullptr, media );
fsMock->remountDevice( RemovableDeviceUuid );
cbMock->prepareForReload();
Reload();
reloaded = cbMock->waitForReload();
ASSERT_TRUE( reloaded );
files = ml->files();
ASSERT_EQ( 5u, files.size() );
media = ml->media( RemovableDeviceMountpoint + "removablefile.mp3" );
ASSERT_NE( nullptr, media );
}
TEST_F( DeviceFs, ReplugDisk )
......
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