sync: fix tests on union remote

This commit is contained in:
Nick Craig-Wood 2019-06-15 10:53:36 +01:00
parent f3719fe269
commit 75606dcc27
1 changed files with 1 additions and 1 deletions

View File

@ -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