Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
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.tsindex 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<AcquireResulconst 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, () => {