1
mirror of https://github.com/rclone/rclone synced 2024-12-27 19:43:48 +01:00

sync: fix integration tests on chunker

The tests added in this commit needed a tweak for chunker

8c69455c37 sync: don't set dir modtimes if already set
This commit is contained in:
Nick Craig-Wood 2024-03-08 14:45:48 +00:00
parent fcb182efce
commit f491efc85d

View File

@ -2582,7 +2582,7 @@ func TestNothingToTransfer(t *testing.T) {
assert.True(t, strings.Contains(string(output), "Set directory modification time"), `expected to find at least one "Set directory modification time" log: `+string(output))
}
assert.False(t, strings.Contains(string(output), "There was nothing to transfer"), `expected to find no "There was nothing to transfer" logs, but found one: `+string(output))
assert.Equal(t, int64(2), accounting.GlobalStats().GetTransfers())
assert.True(t, accounting.GlobalStats().GetTransfers() >= 2)
// run it again and make sure no actions were taken
accounting.GlobalStats().ResetCounters()