chore: small CI tidy ups (#5751)

* Increased the timeout to a flat 25 second for every build because we
still see the odd, non-reproducible timeout on a variety of machines.
* Removed an extraneous `npm run test-install` which meant we did that
check twice on each CI run.
This commit is contained in:
Jack Franklin 2020-04-27 12:49:13 +01:00 committed by GitHub
parent 5e2a029e44
commit 391183694f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -35,7 +35,6 @@ jobs:
before_install:
- PUPPETEER_PRODUCT=firefox npm install
script:
- npm run test-install
- npm run coverage
# This bot runs all the extra checks that aren't the main Puppeteer unit tests

View File

@ -14,18 +14,11 @@
* limitations under the License.
*/
const os = require('os');
const base = require('./base');
const longerTimeoutRequired = process.env.PUPPETEER_PRODUCT === 'firefox' || os.platform() === 'win32';
const timeout = longerTimeoutRequired ? 25 * 1000 : 10 * 1000;
console.log('Mocha config: Timeout set to', timeout / 1000, 'seconds');
module.exports = {
...base,
file: ['./test/mocha-utils.js'],
spec: 'test/*.spec.js',
timeout,
timeout: 25 * 1000,
};