"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
sync: fix integrations tests
Nick Craig-Wood0e23c4542f05
diff --git a/fs/sync/sync_test.go b/fs/sync/sync_test.goindex e77719dff..3ec14dc07 100644--- a/fs/sync/sync_test.go+++ b/fs/sync/sync_test.go@@ -995,9 +995,17 @@ func TestSyncWithTrackRenames(t *testing.T) {fstest.CheckItems(t, r.Fremote, f1, f2)if canTrackRenames {- assert.Equal(t, int64(0), accounting.Stats.GetTransfers())+ if r.Fremote.Features().Move == nil {+ // If no server side Move, we are falling back to Copy + Delete+ assert.Equal(t, int64(1), accounting.Stats.GetTransfers()) // 1 copy+ assert.Equal(t, int64(4), accounting.Stats.GetChecks()) // 2 file checks + 1 move + 1 delete+ } else {+ assert.Equal(t, int64(0), accounting.Stats.GetTransfers()) // 0 copy+ assert.Equal(t, int64(3), accounting.Stats.GetChecks()) // 2 file checks + 1 move+ }} else {- assert.Equal(t, int64(1), accounting.Stats.GetTransfers())+ assert.Equal(t, int64(2), accounting.Stats.GetChecks()) // 2 file checks+ assert.Equal(t, int64(1), accounting.Stats.GetTransfers()) // 0 copy}}