Skip to content

Commit 1f45b23

Browse files
TrottMylesBorins
authored andcommitted
test: add signal check to test-esm-cjs-main
PR-URL: #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>
1 parent 6f3b421 commit 1f45b23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/es-module/test-esm-cjs-main.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ child.stdout.on('data', (data) => {
2121
assert.strictEqual(data.toString(), 'executed\n');
2222
validatedExecution = true;
2323
});
24-
child.on('close', common.mustCall((code, stdout) => {
24+
child.on('close', common.mustCall((code, signal) => {
2525
assert.strictEqual(validatedExecution, true);
2626
assert.strictEqual(code, 0);
27+
assert.strictEqual(signal, null);
2728
}));

0 commit comments

Comments
 (0)