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 --track-renames-strategy modtime test on remotes which don't support modtime

Nick Craig-Wood32df634cb60d
diff --git a/fs/sync/sync_test.go b/fs/sync/sync_test.go
index fdd877110..c4e8b2a2d 100644
--- a/fs/sync/sync_test.go
+++ b/fs/sync/sync_test.go
@@ -1171,7 +1171,7 @@ func TestSyncWithTrackRenamesStrategyModtime(t *testing.T) {
fs.Config.TrackRenamesStrategy = "hash"
}()
- canTrackRenames := operations.CanServerSideMove(r.Fremote)
+ canTrackRenames := operations.CanServerSideMove(r.Fremote) && r.Fremote.Precision() != fs.ModTimeNotSupported
t.Logf("Can track renames: %v", canTrackRenames)
f1 := r.WriteFile("potato", "Potato Content", t1)