Skip to content

Commit

Permalink
chore: enable mocha retries (puppeteer#5782)
Browse files Browse the repository at this point in the history
We are seeing some CI flakes due to network resets, or issues out of our control. Let's try to avoid some of those by using Mocha's built-in retries.
  • Loading branch information
jackfranklin authored Apr 30, 2020
1 parent 5fb399d commit 32c8c69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mocha-config/puppeteer-unit-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ module.exports = {
...base,
file: ['./test/mocha-utils.js'],
spec: 'test/*.spec.js',
// retry twice more, so we run each test up to 3 times if needed.
retries: 2,
timeout: 25 * 1000,
};

0 comments on commit 32c8c69

Please sign in to comment.