Updated test to check that backup actually sees problematic files

This commit is contained in:
Kenneth Skovhede
2026-06-16 12:04:29 +02:00
parent bfc4b00d96
commit a6071a66d8
+5 -1
View File
@@ -266,7 +266,11 @@ namespace Duplicati.UnitTest
var options = new Dictionary<string, string>(this.TestOptions);
using (var c = new Controller("file://" + this.TARGETFOLDER, options, null))
TestUtils.AssertResults(await c.BackupAsync(new[] { this.DATAFOLDER }));
{
var r = await c.BackupAsync(new[] { this.DATAFOLDER });
Assert.AreNotEqual(r.AddedFiles, 0, "No files added");
TestUtils.AssertResults(r);
}
var restoreOptions = new Dictionary<string, string>(this.TestOptions) { ["restore-path"] = this.RESTOREFOLDER };