diff --git a/tests/unit/loop-metrics.tap.js b/tests/unit/loop-metrics.tap.js index c9055d3..bab2e57 100644 --- a/tests/unit/loop-metrics.tap.js +++ b/tests/unit/loop-metrics.tap.js @@ -66,7 +66,7 @@ tap.test('Loop Metrics', function (t) { const meanTime = usage.total / usage.count if (process.arch === 'arm64') { console.log( - `{ min: ${usage.min}, max: ${usage.max}, meanTime: ${meanTime}, total: ${usage.total} }` + `{ min: ${usage.min}, max: ${usage.max}, meanTime: ${meanTime}, count: ${usage.count}, total: ${usage.total} }` ) } t.ok( @@ -77,8 +77,8 @@ tap.test('Loop Metrics', function (t) { usage.total * MICRO_TO_MILLIS <= testDuration, 'should have total less than wall-clock time' ) - t.ok(usage.min < meanTime, 'should have min less than the mean usage time') - t.ok(usage.max > meanTime, 'should have max greater than the mean usage time') + t.ok(usage.min <= meanTime, 'should have min less than the mean usage time') + t.ok(usage.max >= meanTime, 'should have max greater than the mean usage time') t.ok(usage.max * MICRO_TO_MILLIS > SPIN_TIME - CPU_EPSILON, 'should have expected max') t.ok( usage.sumOfSquares * MICRO_TO_MILLIS * MICRO_TO_MILLIS < durationSquare,