From dbdfc5d656dc05d23a48aeb656454040c20217d8 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sat, 15 Dec 2018 19:20:05 -0800 Subject: [PATCH] test: add signal check to test-esm-cjs-main PR-URL: https://github.com/nodejs/node/pull/25073 Reviewed-By: Richard Lau Reviewed-By: Anto Aravinth Reviewed-By: Colin Ihrig Reviewed-By: Daijiro Wachi Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- test/es-module/test-esm-cjs-main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/es-module/test-esm-cjs-main.js b/test/es-module/test-esm-cjs-main.js index 8de923d37b1887..8577eccb9a0f65 100644 --- a/test/es-module/test-esm-cjs-main.js +++ b/test/es-module/test-esm-cjs-main.js @@ -21,7 +21,8 @@ child.stdout.on('data', (data) => { assert.strictEqual(data.toString(), 'executed\n'); validatedExecution = true; }); -child.on('close', common.mustCall((code, stdout) => { +child.on('close', common.mustCall((code, signal) => { assert.strictEqual(validatedExecution, true); assert.strictEqual(code, 0); + assert.strictEqual(signal, null); }));