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); }));