Skip to content

Commit

Permalink
test: use common.mustCall in test-worker-esm-exit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
himself65 authored and targos committed Apr 22, 2020
1 parent a055244 commit 32ab30c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/parallel/test-worker-esm-exit.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ const { Worker } = require('worker_threads');
const w = new Worker(fixtures.path('es-modules/import-process-exit.mjs'),
{ execArgv: ['--experimental-modules'] });
w.on('error', common.mustNotCall());
w.on('exit', (code) => assert.strictEqual(code, 42));
w.on('exit',
common.mustCall((code) => assert.strictEqual(code, 42))
);

0 comments on commit 32ab30c

Please sign in to comment.