Skip to content

Commit 8179ade

Browse files
committed
simplify TestShell#_onClose creation
In an attempt to fix flakiness of "fails fast for ENOTFOUND/EINVAL errors" in e2e.spec.ts
1 parent 11da494 commit 8179ade

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/e2e-tests/test/test-shell.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,7 @@ export class TestShell {
165165
});
166166
}
167167

168-
this._onClose = (async () => {
169-
const [code] = await once(shellProcess, 'close');
170-
return code;
171-
})();
168+
this._onClose = once(shellProcess, 'close').then(([code]) => code);
172169
}
173170

174171
get output(): string {

0 commit comments

Comments
 (0)