fix: utility process exit code for graceful termination (reland) (#44733)
* chore: reland "fix: utility process exit code for graceful termination"
This reverts commit 1cae73ba09
.
Co-authored-by: deepak1556 <hop2deep@gmail.com>
* fix: exit code on posix when killed via api
Co-authored-by: deepak1556 <hop2deep@gmail.com>
* chore: fix code style
Co-authored-by: Robo <hop2deep@gmail.com>
---------
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: deepak1556 <hop2deep@gmail.com>
This commit is contained in:
parent
d477926b5d
commit
39e50be043
4 changed files with 30 additions and 49 deletions
|
@ -200,7 +200,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