Skip to content

Commit 32ab30c

Browse files
himself65targos
authored andcommittedApr 22, 2020
test: use common.mustCall in test-worker-esm-exit
PR-URL: #32544 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent a055244 commit 32ab30c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎test/parallel/test-worker-esm-exit.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ const { Worker } = require('worker_threads');
77
const w = new Worker(fixtures.path('es-modules/import-process-exit.mjs'),
88
{ execArgv: ['--experimental-modules'] });
99
w.on('error', common.mustNotCall());
10-
w.on('exit', (code) => assert.strictEqual(code, 42));
10+
w.on('exit',
11+
common.mustCall((code) => assert.strictEqual(code, 42))
12+
);

0 commit comments

Comments
 (0)
Please sign in to comment.