Skip to content

Commit

Permalink
Fix unhandled ERR_IPC_CHANNEL_CLOSED and a deadlock
Browse files Browse the repository at this point in the history
The detailed description is at jestjs#11143.
  • Loading branch information
xamgore committed Mar 3, 2021
1 parent 78af379 commit b259724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jest-worker/src/workers/ChildProcessWorker.ts
Expand Up @@ -205,6 +205,7 @@ export default class ChildProcessWorker implements WorkerInterface {
private _onExit(exitCode: number) {
if (
exitCode !== 0 &&
exitCode !== null &&
exitCode !== SIGTERM_EXIT_CODE &&
exitCode !== SIGKILL_EXIT_CODE
) {
Expand Down Expand Up @@ -236,7 +237,7 @@ export default class ChildProcessWorker implements WorkerInterface {

this._request = request;
this._retries = 0;
this._child.send(request);
this._child.send(request, () => {});
}

waitForExit(): Promise<void> {
Expand Down

0 comments on commit b259724

Please sign in to comment.