summaryrefslogtreecommitdiff
path: root/test/es-module
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-12-15 19:20:05 -0800
committerRich Trott <rtrott@gmail.com>2018-12-18 14:39:16 -0800
commitdbdfc5d656dc05d23a48aeb656454040c20217d8 (patch)
tree45a76cd59f4ac00271f81ef84571fb297033e588 /test/es-module
parenteef6504cf7b95ada170ec9878089ce57fde551d8 (diff)
downloadandroid-node-v8-dbdfc5d656dc05d23a48aeb656454040c20217d8.tar.gz
android-node-v8-dbdfc5d656dc05d23a48aeb656454040c20217d8.tar.bz2
android-node-v8-dbdfc5d656dc05d23a48aeb656454040c20217d8.zip
test: add signal check to test-esm-cjs-main
PR-URL: https://github.com/nodejs/node/pull/25073 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/es-module')
-rw-r--r--test/es-module/test-esm-cjs-main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/es-module/test-esm-cjs-main.js b/test/es-module/test-esm-cjs-main.js
index 8de923d37b..8577eccb9a 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);
}));