diff options
Diffstat (limited to 'test/parallel/test-timers-unrefed-in-beforeexit.js')
-rw-r--r-- | test/parallel/test-timers-unrefed-in-beforeexit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-timers-unrefed-in-beforeexit.js b/test/parallel/test-timers-unrefed-in-beforeexit.js index 530d97674d..487a4ecef5 100644 --- a/test/parallel/test-timers-unrefed-in-beforeexit.js +++ b/test/parallel/test-timers-unrefed-in-beforeexit.js @@ -1,6 +1,6 @@ 'use strict'; -require('../common'); +const common = require('../common'); const assert = require('assert'); let once = 0; @@ -9,7 +9,7 @@ process.on('beforeExit', () => { if (once > 1) throw new RangeError('beforeExit should only have been called once!'); - setTimeout(() => {}, 1).unref(); + setTimeout(common.noop, 1).unref(); once++; }); |