Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/sequential/test-performance-eventloopdelay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading