From c21e9b90b151efae5dccdfb4663fa654f3d31f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Arboleda?= Date: Sat, 28 Mar 2020 22:52:58 -0500 Subject: [PATCH] test: remove unnecessary console.log() calls --- test/parallel/test-worker-terminate-null-handler.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/parallel/test-worker-terminate-null-handler.js b/test/parallel/test-worker-terminate-null-handler.js index 3807501de025f0..9db2e38b5c4920 100644 --- a/test/parallel/test-worker-terminate-null-handler.js +++ b/test/parallel/test-worker-terminate-null-handler.js @@ -11,13 +11,9 @@ const { parentPort } = require('worker_threads'); parentPort.postMessage({ hello: 'world' }); `, { eval: true }); -process.once('beforeExit', common.mustCall(() => { - console.log('beforeExit'); - worker.ref(); -})); +process.once('beforeExit', common.mustCall(() => worker.ref())); worker.on('exit', common.mustCall(() => { - console.log('exit'); worker.terminate().then((res) => assert.strictEqual(res, undefined)); worker.terminate(() => null).then( (res) => assert.strictEqual(res, undefined)