fixup! fixup! fixup! ... and another all nighter.

This commit is contained in:
2025-10-22 16:33:13 +01:00
parent 26b592f547
commit ad3c85c6b6
+2 -1
View File
@@ -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