mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 15:38:57 +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