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

sync: fix tests on union remote

Nick Craig-Wood75606dcc278a
diff --git a/fs/sync/sync_test.go b/fs/sync/sync_test.go
index 658a22b46..45db3c2d1 100644
--- a/fs/sync/sync_test.go
+++ b/fs/sync/sync_test.go
@@ -995,7 +995,7 @@ func TestSyncWithTrackRenames(t *testing.T) {
fstest.CheckItems(t, r.Fremote, f1, f2)
if canTrackRenames {
- if r.Fremote.Features().Move == nil {
+ if r.Fremote.Features().Move == nil || r.Fremote.Name() == "TestUnion" { // union remote can Move but returns CantMove error
// 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