Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

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

Nick Craig-Wood64ec220d5db1
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