Skip to content
Prev Previous commit
Next Next commit
child_process: adding on exit handle
  • Loading branch information
shobhitchittora committed Oct 3, 2018
commit 9d771cf866592e779c6b3487ecd9565c3b030805
4 changes: 4 additions & 0 deletions test/parallel/test-child-process-fork-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ const cp = fork(fixtures.path('child-process-echo-options.js'), undefined,
cp.on('message', common.mustCall(({ env }) => {
assert.strictEqual(env.foo, expectedEnv.foo);
}));
Comment thread
lundibundi marked this conversation as resolved.
Outdated

cp.on('exit', common.mustCall((code) => {
assert.strictEqual(code, 0);
}));