Skip to content

Commit

Permalink
Change exit listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
OhKai committed Nov 30, 2023
1 parent 329cecc commit c7e9ff3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ jest.setTimeout(100000);

function killEngineProcess(engineProcess) {
return new Promise((resolve) => {
engineProcess.on('close', () => {
engineProcess.on('exit', () => {
resolve();
});
engineProcess.on('error', () => {
resolve();
});
engineProcess.kill();
Expand Down

0 comments on commit c7e9ff3

Please sign in to comment.