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"
}()
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)