diff --git a/packages/e2e-tests/test/test-shell.ts b/packages/e2e-tests/test/test-shell.ts index 589f1defe..21ad1dce8 100644 --- a/packages/e2e-tests/test/test-shell.ts +++ b/packages/e2e-tests/test/test-shell.ts @@ -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 {