diff --git a/Duplicati/UnitTest/DiskImage/DiskImageTests.cs b/Duplicati/UnitTest/DiskImage/DiskImageTests.cs index d3646e100..7fe3115bb 100644 --- a/Duplicati/UnitTest/DiskImage/DiskImageTests.cs +++ b/Duplicati/UnitTest/DiskImage/DiskImageTests.cs @@ -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