From 079a32e31cb076668dfaf00366fcb3ab5ee662e0 Mon Sep 17 00:00:00 2001 From: himself65 Date: Sun, 29 Mar 2020 14:06:58 +0800 Subject: [PATCH] test: use common.mustCall in test-worker-esm-exit PR-URL: https://github.com/nodejs/node/pull/32544 Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- test/parallel/test-worker-esm-exit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-worker-esm-exit.js b/test/parallel/test-worker-esm-exit.js index 184106936536db..8c38faf3b72f8d 100644 --- a/test/parallel/test-worker-esm-exit.js +++ b/test/parallel/test-worker-esm-exit.js @@ -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)) +);