diff options
author | 2021-12-24 06:14:49 +0000 | |
---|---|---|
committer | 2021-12-24 06:15:44 +0000 | |
commit | 1002990619c4606b97cfb84089c4d65a3c67e470 (patch) | |
tree | 20642e12919e9c2bc70fd300ce149d3041819184 /integration/scripts/browser.js | |
parent | a94bbd8f3cf823e70601999b7126f65a7d94024a (diff) | |
download | bun-1002990619c4606b97cfb84089c4d65a3c67e470.tar.gz bun-1002990619c4606b97cfb84089c4d65a3c67e470.tar.zst bun-1002990619c4606b97cfb84089c4d65a3c67e470.zip |
Make integration tests more Docker-friendly
Diffstat (limited to 'integration/scripts/browser.js')
-rw-r--r-- | integration/scripts/browser.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/integration/scripts/browser.js b/integration/scripts/browser.js index e4512714b..3a69a857d 100644 --- a/integration/scripts/browser.js +++ b/integration/scripts/browser.js @@ -71,8 +71,19 @@ function writeSnapshot(name, code) { ); } +const baseOptions = { + args: [ + "--disable-gpu", + "--disable-dev-shm-usage", + "--disable-setuid-sandbox", + "--no-sandbox", + ], +}; + async function main() { - const launchOptions = USE_EXISTING_PROCESS ? { devtools: true } : undefined; + const launchOptions = USE_EXISTING_PROCESS + ? { ...baseOptions, devtools: true } + : baseOptions; const browser = await puppeteer.launch(launchOptions); const promises = []; let allTestsPassed = true; @@ -83,6 +94,8 @@ async function main() { async function runPage(key) { var page; try { + console.log("launched"); + page = await browser.newPage(); if (USE_EXISTING_PROCESS) { await page.evaluate(` |