From fd02c93d29da1ff18f33cc561bdddce2facd28db Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 16 Jul 2016 14:14:07 -0700 Subject: [PATCH] test: ensure callback runs in test-vm-sigint PR-URL: https://github.com/nodejs/node/pull/7768 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig --- test/parallel/test-vm-sigint.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-vm-sigint.js b/test/parallel/test-vm-sigint.js index 5260a8464f1da8..11497733ce7eb1 100644 --- a/test/parallel/test-vm-sigint.js +++ b/test/parallel/test-vm-sigint.js @@ -33,7 +33,7 @@ process.on('SIGUSR2', common.mustCall(() => { process.kill(child.pid, 'SIGINT'); })); -child.on('close', function(code, signal) { +child.on('close', common.mustCall((code, signal) => { assert.strictEqual(signal, null); assert.strictEqual(code, 0); -}); +}));