From 64ec220d5db150cf546332d4cfc988d7ece34dcd Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 31 Dec 2016 15:19:26 +0000 Subject: [PATCH] Fix --no-update-modtime test on remotes which don't support hashes --- fs/sync_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fs/sync_test.go b/fs/sync_test.go index fcf44bea6..6930a9d0f 100644 --- a/fs/sync_test.go +++ b/fs/sync_test.go @@ -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