From f491efc85d0bc6c674520331f315b51f060a6b92 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Fri, 8 Mar 2024 14:45:48 +0000 Subject: [PATCH] sync: fix integration tests on chunker The tests added in this commit needed a tweak for chunker 8c69455c37966e66 sync: don't set dir modtimes if already set --- fs/sync/sync_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/sync/sync_test.go b/fs/sync/sync_test.go index 6636812f4..bf74a33bd 100644 --- a/fs/sync/sync_test.go +++ b/fs/sync/sync_test.go @@ -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()