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 11, 2020
1 parent cca269c commit 079a32e
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 @@ -6,4 +6,6 @@ const { Worker } = require('worker_threads');

const w = new Worker(fixtures.path('es-modules/import-process-exit.mjs'));
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 079a32e

Please sign in to comment.