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:
parent
5e2a029e44
commit
391183694f
@ -35,7 +35,6 @@ jobs:
|
|||||||
before_install:
|
before_install:
|
||||||
- PUPPETEER_PRODUCT=firefox npm install
|
- PUPPETEER_PRODUCT=firefox npm install
|
||||||
script:
|
script:
|
||||||
- npm run test-install
|
|
||||||
- npm run coverage
|
- npm run coverage
|
||||||
|
|
||||||
# This bot runs all the extra checks that aren't the main Puppeteer unit tests
|
# This bot runs all the extra checks that aren't the main Puppeteer unit tests
|
||||||
|
@ -14,18 +14,11 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const os = require('os');
|
|
||||||
const base = require('./base');
|
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 = {
|
module.exports = {
|
||||||
...base,
|
...base,
|
||||||
file: ['./test/mocha-utils.js'],
|
file: ['./test/mocha-utils.js'],
|
||||||
spec: 'test/*.spec.js',
|
spec: 'test/*.spec.js',
|
||||||
timeout,
|
timeout: 25 * 1000,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user