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:
parent
cbfec0d281
commit
64ec220d5d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user