Skip to content

Commit

Permalink
test: remove unnecessary console.log() calls
Browse files Browse the repository at this point in the history
PR-URL: #32541
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
  • Loading branch information
juanarbol authored and targos committed Apr 11, 2020
1 parent 8cb5e41 commit 30505d7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/parallel/test-worker-terminate-null-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 30505d7

Please sign in to comment.