From b3e8ba9a635c8db4e098a6d42408200d22d93292 Mon Sep 17 00:00:00 2001 From: Carl Johnsen Date: Wed, 25 Feb 2026 15:49:04 +0100 Subject: [PATCH] Restore disk for auto mount should have an incorrect partition table to ensure restore went well --- Duplicati/UnitTest/DiskImage/DiskImageTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/UnitTest/DiskImage/DiskImageTests.cs b/Duplicati/UnitTest/DiskImage/DiskImageTests.cs index bc655f8a6..89bdf8680 100644 --- a/Duplicati/UnitTest/DiskImage/DiskImageTests.cs +++ b/Duplicati/UnitTest/DiskImage/DiskImageTests.cs @@ -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}");