1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

bisync: fix failing tests

In this commit

d240d044c3 check: improved reporting of differences in sizes and contents

We adjusted the sense of operations.CheckIdenticalDownload to return
true if files are identical as is implied by the name, but we forgot
to invert the logic in the bisync DownloadCheckFn which caused lots of
tests to fail.
This commit is contained in:
Nick Craig-Wood
2025-11-03 15:51:26 +00:00
parent bc57a31859
commit e5fd97b8d2

View File

@@ -130,7 +130,7 @@ func DownloadCheckFn(ctx context.Context, dst, src fs.Object) (equal bool, noHas
if err != nil {
return true, true, fmt.Errorf("failed to download: %w", err)
}
return equal, false, nil
return !equal, false, nil
}
// check potential conflicts (to avoid renaming if already identical)