Increase default test timeout to 10 seconds on Travis

Maybe this will fix some of the intermittent failures...
This commit is contained in:
Dan Stillman 2016-04-26 02:16:37 -04:00
parent a62e7e46bf
commit 4e50b7ddc2
3 changed files with 3 additions and 2 deletions

View file

@ -38,6 +38,7 @@ ZoteroUnit.prototype = {
this.runTests = !this.makeTestData;
this.bail = cmdLine.handleFlag("bail", false);
this.grep = cmdLine.handleFlagWithParam("grep", false);
this.timeout = cmdLine.handleFlagWithParam("ZoteroTestTimeout", false);
},
dump:function(x) {

View file

@ -178,7 +178,7 @@ Mocha.Runner.prototype.fail = function(test, err){
mocha.setup({
ui: "bdd",
reporter: Reporter,
timeout: 5000,
timeout: ZoteroUnit.timeout || 5000,
grep: ZoteroUnit.grep
});

View file

@ -132,7 +132,7 @@ fi
if [ "$TRAVIS" = true ]; then
FX_ARGS="$FX_ARGS -ZoteroNoUserInput"
FX_ARGS="$FX_ARGS -ZoteroNoUserInput -ZoteroTestTimeout 10000"
fi
# Clean up on exit