Skip to content

Commit

Permalink
disable puppeteer sandbox to work around CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoscaz committed Jan 12, 2025
1 parent 12a8799 commit 1639097
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ let exitCode = 0;

httpServer.once('listening', () => {
(async () => {
const browser = await puppeteer.launch({ headless: true });
const browser = await puppeteer.launch({
headless: true,
args: ['--no-sandbox', '--disable-setuid-sandbox'],
});
const page = await browser.newPage();
page.on('console', async (evt) => {
const [msg, ...args] = await Promise.all(evt.args().map(arg => arg.jsonValue()));
Expand Down

0 comments on commit 1639097

Please # to comment.