Skip to content
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.

Commit

Permalink
travis --no-sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Jan 11, 2018
1 parent 07d87f4 commit 68ec154
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ const { clearCookies } = require('./helpers');

let browser;

const TRAVIS = 'TRAVIS' in process.env && 'CI' in process.env;

before(async function () {
browser = await puppeteer.launch();
browser = await puppeteer.launch(TRAVIS ? {
args: ['--no-sandbox'],
} : undefined);
global.tab = await browser.newPage();
});

Expand Down

0 comments on commit 68ec154

Please sign in to comment.