Skip to content

Commit 4165312

Browse files
juanarboltargos
authored andcommitted
test: remove unnecessary console.log() calls
PR-URL: #32541 Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 30d21fb commit 4165312

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

test/parallel/test-worker-terminate-null-handler.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ const { parentPort } = require('worker_threads');
1111
parentPort.postMessage({ hello: 'world' });
1212
`, { eval: true });
1313

14-
process.once('beforeExit', common.mustCall(() => {
15-
console.log('beforeExit');
16-
worker.ref();
17-
}));
14+
process.once('beforeExit', common.mustCall(() => worker.ref()));
1815

1916
worker.on('exit', common.mustCall(() => {
20-
console.log('exit');
2117
worker.terminate().then((res) => assert.strictEqual(res, undefined));
2218
worker.terminate(() => null).then(
2319
(res) => assert.strictEqual(res, undefined)

0 commit comments

Comments
 (0)