1
mirror of https://github.com/rclone/rclone synced 2024-11-14 13:36:24 +01:00

Fix --no-update-modtime test on remotes which don't support hashes

This commit is contained in:
Nick Craig-Wood 2016-12-31 15:19:26 +00:00
parent cbfec0d281
commit 64ec220d5d

View File

@ -317,6 +317,12 @@ func TestSyncAfterChangingModtimeOnly(t *testing.T) {
func TestSyncAfterChangingModtimeOnlyWithNoUpdateModTime(t *testing.T) {
r := NewRun(t)
defer r.Finalise()
if r.fremote.Hashes().Count() == 0 {
t.Log("Can't check this if no hashes supported")
return
}
fs.Config.NoUpdateModTime = true
defer func() {
fs.Config.NoUpdateModTime = false