Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

sync: fix TestCopyRedownload after ModifyWindow changes #2310

Nick Craig-Wood1c7558195929
diff --git a/fs/sync/sync_test.go b/fs/sync/sync_test.go
index c833281d7..11204506c 100644
--- a/fs/sync/sync_test.go
+++ b/fs/sync/sync_test.go
@@ -152,7 +152,8 @@ func TestCopyRedownload(t *testing.T) {
err := CopyDir(r.Flocal, r.Fremote)
require.NoError(t, err)
- fstest.CheckItems(t, r.Flocal, file1)
+ // Test with combined precision of local and remote as we copied it there and back
+ fstest.CheckListingWithPrecision(t, r.Flocal, []fstest.Item{file1}, nil, fs.GetModifyWindow(r.Flocal, r.Fremote))
}
// Create a file and sync it. Change the last modified date and resync.