mirror of
https://github.com/DeNNiiInc/Web-Page-Performance-Test.git
synced 2026-04-17 20:05:58 +00:00
Fix: Force random port for Chrome to resolve concurrency issues
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user