From a6071a66d87925ea022b172b8042e67135c4259e Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Tue, 16 Jun 2026 12:04:29 +0200 Subject: [PATCH] Updated test to check that backup actually sees problematic files --- Duplicati/UnitTest/ProblematicPathTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Duplicati/UnitTest/ProblematicPathTests.cs b/Duplicati/UnitTest/ProblematicPathTests.cs index 106465eed..46a7faac8 100644 --- a/Duplicati/UnitTest/ProblematicPathTests.cs +++ b/Duplicati/UnitTest/ProblematicPathTests.cs @@ -266,7 +266,11 @@ namespace Duplicati.UnitTest var options = new Dictionary(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(this.TestOptions) { ["restore-path"] = this.RESTOREFOLDER };