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.
This commit is contained in:
Jack Franklin 2020-04-30 11:19:50 +01:00 committed by GitHub
parent 5fb399d55d
commit 32c8c6992c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,5 +20,7 @@ module.exports = {
...base, ...base,
file: ['./test/mocha-utils.js'], file: ['./test/mocha-utils.js'],
spec: 'test/*.spec.js', spec: 'test/*.spec.js',
// retry twice more, so we run each test up to 3 times if needed.
retries: 2,
timeout: 25 * 1000, timeout: 25 * 1000,
}; };