build: only retry tests on CI (#37167)
This commit is contained in:
parent
9a0a0a7a46
commit
00a542358d
1 changed files with 3 additions and 1 deletions
|
@ -50,9 +50,11 @@ app.whenReady().then(async () => {
|
|||
|
||||
const Mocha = require('mocha');
|
||||
const mochaOptions = {
|
||||
retries: 3,
|
||||
forbidOnly: process.env.CI
|
||||
};
|
||||
if (process.env.CI) {
|
||||
mochaOptions.retries = 3;
|
||||
}
|
||||
if (process.env.MOCHA_REPORTER) {
|
||||
mochaOptions.reporter = process.env.MOCHA_REPORTER;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue