fix: utility process exit code for graceful termination (reland) (#44726)
* chore: reland "fix: utility process exit code for graceful termination"
This reverts commit 1cae73ba09
.
* fix: exit code on posix when killed via api
* chore: fix code style
This commit is contained in:
parent
0d6743e79b
commit
48c9149a52
4 changed files with 30 additions and 49 deletions
|
@ -215,7 +215,8 @@ describe('utilityProcess module', () => {
|
|||
});
|
||||
await once(child, 'spawn');
|
||||
expect(child.kill()).to.be.true();
|
||||
await once(child, 'exit');
|
||||
const [code] = await once(child, 'exit');
|
||||
expect(code).to.equal(0);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue