fix: utility process exit code for graceful termination (#44749)

This commit is contained in:
Robo 2024-11-20 23:23:10 +09:00 committed by GitHub
commit c90509c2bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 30 additions and 49 deletions

View file

@ -185,7 +185,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);
});
});