From 32c8c6992cedfaa55c0999ba2da28b5fd240f2de Mon Sep 17 00:00:00 2001 From: Jack Franklin Date: Thu, 30 Apr 2020 11:19:50 +0100 Subject: [PATCH] chore: enable mocha retries (#5782) 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. --- mocha-config/puppeteer-unit-tests.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mocha-config/puppeteer-unit-tests.js b/mocha-config/puppeteer-unit-tests.js index c33052c4..01dcd44e 100644 --- a/mocha-config/puppeteer-unit-tests.js +++ b/mocha-config/puppeteer-unit-tests.js @@ -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, };