Skip to content

Commit 760d5e9

Browse files
committed
fix(dashboard): avoid stdout readiness race
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 244343d0-8af1-4a4c-b593-0dd45cd3c82f
1 parent a7b4d5e commit 760d5e9

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎packages/playwright-core/src/tools/dashboard/dashboardApp.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,6 @@ export async function openDashboardApp() {
296296
stopSelfDestruct();
297297
// eslint-disable-next-line no-console
298298
console.log(`Dashboard is running pid=${acquired.daemonPid}`);
299-
// eslint-disable-next-line no-restricted-properties
300-
await new Promise(f => process.stdout.write('', f)); // Make sure stdout is flushed.
301299
return;
302300
}
303301
const { server } = acquired;
@@ -319,8 +317,6 @@ export async function openDashboardApp() {
319317
// eslint-disable-next-line no-console
320318
console.log(`Dashboard is running pid=${process.pid}`);
321319
}
322-
// eslint-disable-next-line no-restricted-properties
323-
await new Promise(f => process.stdout.write('', f)); // Make sure stdout is flushed.
324320
} catch (error) {
325321
// eslint-disable-next-line no-console
326322
console.log(error);

0 commit comments

Comments
 (0)