commit 4e50b7ddc2950cb98115eff4376534907e57edcc
parent a62e7e46bf2e475df60045aadcfc64f3d25600e3
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 26 Apr 2016 02:16:37 -0400
Increase default test timeout to 10 seconds on Travis
Maybe this will fix some of the intermittent failures...
Diffstat:
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/test/components/zotero-unit.js b/test/components/zotero-unit.js
@@ -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) {
diff --git a/test/content/runtests.js b/test/content/runtests.js
@@ -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
});
diff --git a/test/runtests.sh b/test/runtests.sh
@@ -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