From 416531227e7ff7f492d75601d139cb21ac628366 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 PR-URL: https://github.com/nodejs/node/pull/32541 Reviewed-By: Yongsheng Zhang Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Rich Trott --- 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)