From f757106f8908f2575ea488247bf321778507bf93 Mon Sep 17 00:00:00 2001 From: DeNNiiInc Date: Sun, 28 Dec 2025 00:35:19 +1100 Subject: [PATCH] Fix: Force random port for Chrome to resolve concurrency issues --- lib/runner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/runner.js b/lib/runner.js index eab325d..db53f82 100644 --- a/lib/runner.js +++ b/lib/runner.js @@ -27,7 +27,8 @@ async function runTest(url, options = {}) { const chromePath = process.platform === 'linux' ? '/usr/bin/chromium' : undefined; const chrome = await chromeLauncher.launch({ chromeFlags: ['--headless', '--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage'], - chromePath: chromePath + chromePath: chromePath, + port: 0 // Force random port to avoid concurrency issues with default 9222 }); // Lighthouse Config