Default timeout to 30 seconds on CI and 10 seconds locally

This commit is contained in:
Kevin Sawicki 2016-11-29 14:29:35 -08:00
parent 4ccc3d9fb3
commit 10386edea5
6 changed files with 1 additions and 29 deletions

View file

@ -55,6 +55,7 @@
var mocha = new Mocha();
mocha.ui('bdd').reporter(isCi ? 'tap' : 'html');
mocha.timeout(isCi ? 30000 : 10000)
var query = Mocha.utils.parseQuery(window.location.search || '');
if (query.grep) mocha.grep(query.grep);