From 612b5554abb1300d6f42b2d7d4a03e356444ee12 Mon Sep 17 00:00:00 2001 From: marcopiraccini Date: Sun, 3 May 2026 14:36:14 +0200 Subject: [PATCH] test: relax min assertion in test-performance-eventloopdelay Signed-off-by: marcopiraccini --- test/sequential/test-performance-eventloopdelay.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/sequential/test-performance-eventloopdelay.js b/test/sequential/test-performance-eventloopdelay.js index 72e6f7abfef3c2..66493318f5651d 100644 --- a/test/sequential/test-performance-eventloopdelay.js +++ b/test/sequential/test-performance-eventloopdelay.js @@ -71,7 +71,11 @@ const { sleep } = require('internal/util'); // The values are non-deterministic, so we just check that a value is // present, as opposed to a specific value. assert(histogram.count > 0, `Expected samples to be recorded, got count=${histogram.count}`); - assert(histogram.min > 0); + // Min can legitimately be 0: the underlying HDR histogram has a + // lowest discernible value of 1us, so samples whose delta falls in + // the [0, 1us) bucket are reported as 0. A negative value would + // indicate a bug. + assert(histogram.min >= 0); assert(histogram.max > 0); assert(histogram.stddev > 0); assert(histogram.mean > 0);