fix: utility process exit code for graceful termination (#44698)
This commit is contained in:
parent
d320840a54
commit
36e1a0bf00
4 changed files with 11 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