From ea62bbfa6b29f71863749fc6dabef97ae8bc7a6a Mon Sep 17 00:00:00 2001 From: XadillaX Date: Tue, 14 Feb 2023 14:12:59 +0800 Subject: [PATCH] f --- lib/internal/timers.js | 2 +- test/parallel/test-timers-timeout-with-long-loop.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 ]); });