Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(dashboard): treat EEXIST as singleton-already-running (#40908)

Simon Knott618eb464b07e
diff --git a/packages/playwright-core/src/tools/dashboard/dashboardApp.ts b/packages/playwright-core/src/tools/dashboard/dashboardApp.ts
index 7515e7b38a..4c969c00da 100644
--- a/packages/playwright-core/src/tools/dashboard/dashboardApp.ts
+++ b/packages/playwright-core/src/tools/dashboard/dashboardApp.ts
@@ -266,7 +266,7 @@ async function acquireSingleton(options: DashboardOptions): Promise<AcquireResul
const server = net.createServer();
server.listen(socketPath, () => resolve({ role: 'winner', server }));
server.on('error', (err: NodeJS.ErrnoException) => {
- if (err.code !== 'EADDRINUSE')
+ if (err.code !== 'EADDRINUSE' && err.code !== 'EEXIST')
return reject(err);
let ackBuffer = '';
const client = net.connect(socketPath, () => {