Skip to content

Commit

Permalink
simplify TestShell#_onClose creation
Browse files Browse the repository at this point in the history
In an attempt to fix flakiness of "fails fast for ENOTFOUND/EINVAL errors" in e2e.spec.ts
  • Loading branch information
kraenhansen committed Oct 8, 2024
1 parent 11da494 commit 8179ade
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/e2e-tests/test/test-shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,7 @@ export class TestShell {
});
}

this._onClose = (async () => {
const [code] = await once(shellProcess, 'close');
return code;
})();
this._onClose = once(shellProcess, 'close').then(([code]) => code);
}

get output(): string {
Expand Down

0 comments on commit 8179ade

Please sign in to comment.