Restore disk for auto mount should have an incorrect partition table to ensure restore went well

This commit is contained in:
Carl Johnsen
2026-02-25 15:49:04 +01:00
parent 6e1d27e3b1
commit b3e8ba9a63
@@ -573,7 +573,7 @@ namespace Duplicati.UnitTest
var restoreDrivePath = _diskHelper.CreateDisk(_restoreImagePath, (100 * MiB));
// Initialize disk (the restore will overwrite this, but we need it formatted)
_diskHelper.InitializeDisk(restoreDrivePath, PartitionTableType.GPT, [(FileSystemType.FAT32, 0)]);
_diskHelper.InitializeDisk(restoreDrivePath, PartitionTableType.GPT, [(FileSystemType.FAT32, 50 * MiB), (FileSystemType.FAT32, 0)]);
_diskHelper.Mount(restoreDrivePath);
TestContext.Progress.WriteLine($"Restore disk image created and kept online at: {_restoreImagePath}");