mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: relax min assertion in test-performance-eventloopdelay
Signed-off-by: marcopiraccini <marco.piraccini@gmail.com> PR-URL: https://github.com/nodejs/node/pull/63100 Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
1 parent
ba0736a847
commit
d57bd2bf59
1 file changed
+5
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user