1
mirror of https://github.com/rclone/rclone synced 2024-11-25 02:47:14 +01:00

sync: fix --track-renames-strategy modtime test on remotes which don't support modtime

This commit is contained in:
Nick Craig-Wood 2020-03-22 11:52:40 +00:00
parent e569977c06
commit 32df634cb6

View File

@ -1171,7 +1171,7 @@ func TestSyncWithTrackRenamesStrategyModtime(t *testing.T) {
fs.Config.TrackRenamesStrategy = "hash" 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) t.Logf("Can track renames: %v", canTrackRenames)
f1 := r.WriteFile("potato", "Potato Content", t1) f1 := r.WriteFile("potato", "Potato Content", t1)