Incorrect indices passed to the remote synchronization module should not record anything in the database, but should instead emit a warning to the log

This commit is contained in:
Carl Johnsen
2026-01-09 10:56:55 +01:00
parent 7021036d98
commit 87dd0cd756
2 changed files with 9 additions and 1 deletions
@@ -889,6 +889,7 @@ namespace Duplicati.UnitTest
[Category("RemoteSync")]
public void TestRecordSyncOperation_WithDifferentIndex()
{
// Incorrect index should not record, but throw a warning.
var module = new RemoteSynchronizationModule();
var options = new Dictionary<string, string>
{
@@ -910,7 +911,7 @@ namespace Duplicati.UnitTest
WHERE ""Description"" = 'Rsync 2'
";
var count = (long)cmd.ExecuteScalar();
Assert.AreEqual(1, count);
Assert.AreEqual(0, count);
}
[Test]