From ad3c85c6b6ff3631c8b5228c6cab8c0ceee6aabf Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Wed, 22 Oct 2025 16:33:13 +0100 Subject: [PATCH] fixup! fixup! fixup! ... and another all nighter. --- internal/cache/backends/redis_health_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/cache/backends/redis_health_test.go b/internal/cache/backends/redis_health_test.go index 064594a..0b6707c 100644 --- a/internal/cache/backends/redis_health_test.go +++ b/internal/cache/backends/redis_health_test.go @@ -277,8 +277,9 @@ func TestHealthMonitor_StatsAccuracy(t *testing.T) { assert.Equal(t, int64(0), stats["consecutive_failures"].(int64)) // Last check time should be recent (within check interval + buffer) + // Use 2s tolerance to account for CI runner load and timing variance lastCheck := stats["last_check"].(time.Time) - assert.WithinDuration(t, time.Now(), lastCheck, 1*time.Second) + assert.WithinDuration(t, time.Now(), lastCheck, 2*time.Second) } // TestHealthMonitor_DefaultConfig tests default configuration