diff --git a/lib/internal/timers.js b/lib/internal/timers.js index f5f650a8c7a5b3..d8607ee8fffe4f 100644 --- a/lib/internal/timers.js +++ b/lib/internal/timers.js @@ -538,7 +538,7 @@ function getTimerCallbacks(runNextTicks) { if (diff < msecs) { debug('%d list wait because diff is %d', msecs, diff); } else { - debug('%d list wait because it\s no more earliest', msecs); + debug('%d list wait because it\'s no more earliest', msecs); } return; } diff --git a/test/parallel/test-timers-timeout-with-long-loop.js b/test/parallel/test-timers-timeout-with-long-loop.js index d73e2349b8d57a..f78f3eeae65c45 100644 --- a/test/parallel/test-timers-timeout-with-long-loop.js +++ b/test/parallel/test-timers-timeout-with-long-loop.js @@ -1,11 +1,10 @@ 'use strict'; -const assert = require('assert'); +require('../common'); -const common = require('../common'); +const assert = require('assert'); const orders = []; - process.on('exit', () => { assert.deepStrictEqual(orders, [ 1, 2, 3 ]); });