Skip to content

Commit

Permalink
test: do not handle sigint for all the browsers launched in tests (pu…
Browse files Browse the repository at this point in the history
…ppeteer#2990)

Puppeteer's default handler issues "process.exit(130)", causing
test runner to shut too early.

As a result, test runner doesn't show run summary.
  • Loading branch information
aslushnikov authored Jul 31, 2018
1 parent 2c95994 commit 4bbaa9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ assert(fs.existsSync(puppeteer.executablePath()), `Chromium is not Downloaded. R

const slowMo = parseInt((process.env.SLOW_MO || '0').trim(), 10);
const defaultBrowserOptions = {
handleSIGINT: false,
executablePath,
slowMo,
headless,
Expand Down

0 comments on commit 4bbaa9d

Please sign in to comment.