Skip to content

Commit

Permalink
'--no-sandbox' if CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien TASSIN committed May 9, 2018
1 parent e9f67dd commit adb91f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ beforeEach(async () => {
backendServer = http.createServer(backendRequestHandler);
await backendServer.listen(xhrBackendPort);

const args = ['--no-sandbox'];
const args = [];
if (process.env.CI) {
args.push('--no-sandbox');
}
browser = await puppeteer.launch({
headless: true,
args,
Expand Down

0 comments on commit adb91f7

Please sign in to comment.