Manually fix issues that eslint --fix couldn't do automatically. PR-URL: https://github.com/nodejs/node/pull/10685 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
16 lines
411 B
JavaScript
16 lines
411 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
console.error(process.uptime());
|
|
assert.ok(process.uptime() <= 2);
|
|
|
|
const original = process.uptime();
|
|
|
|
setTimeout(function() {
|
|
const uptime = process.uptime();
|
|
// some wiggle room to account for timer
|
|
// granularity, processor speed, and scheduling
|
|
assert.ok(uptime >= original + 2);
|
|
assert.ok(uptime <= original + 3);
|
|
}, 2000);
|