On Mac, the disk needs to be mounted to throw errors when opening for write
This commit is contained in:
@@ -269,7 +269,8 @@ namespace Duplicati.UnitTest
|
||||
var restoreDrivePath = _diskHelper.CreateDisk(_restoreImagePath, MiB100);
|
||||
|
||||
// Initialize disk (the restore will overwrite this, but we need it formatted)
|
||||
_diskHelper.InitializeDisk(restoreDrivePath, PartitionTableType.GPT, []);
|
||||
_diskHelper.InitializeDisk(restoreDrivePath, PartitionTableType.GPT, [(FileSystemType.FAT32, 0)]);
|
||||
_diskHelper.Mount(restoreDrivePath);
|
||||
TestContext.Progress.WriteLine($"Restore disk image created and kept online at: {_restoreImagePath}");
|
||||
|
||||
// First attempt: Restore without auto-unmount option should fail
|
||||
@@ -299,6 +300,10 @@ namespace Duplicati.UnitTest
|
||||
{
|
||||
// Assumed to fail
|
||||
}
|
||||
catch (UserInformationException)
|
||||
{
|
||||
// Assumed to fail
|
||||
}
|
||||
}
|
||||
|
||||
// Second attempt: Restore with auto-unmount option should succeed
|
||||
|
||||
Reference in New Issue
Block a user