Increase timeout for all qunit tests.
* Timeout any test that takes more than 10 seconds.
This commit is contained in:
parent
5b03cc1433
commit
ed78b47745
|
@ -36,7 +36,7 @@ page.open(args[0], function(status) {
|
|||
} else {
|
||||
page.evaluate(logQUnit);
|
||||
|
||||
var timeout = parseInt(args[1] || 120000, 10),
|
||||
var timeout = parseInt(args[1] || 130000, 10),
|
||||
start = Date.now();
|
||||
|
||||
var interval = setInterval(function() {
|
||||
|
@ -68,6 +68,8 @@ function logQUnit() {
|
|||
|
||||
console.log("\nRunning: " + JSON.stringify(QUnit.urlParams) + "\n");
|
||||
|
||||
QUnit.config.testTimeout = 10000;
|
||||
|
||||
QUnit.moduleDone(function(context) {
|
||||
if (context.failed) {
|
||||
var msg = "Module Failed: " + context.name + "\n" + testErrors.join("\n");
|
||||
|
|
Loading…
Reference in New Issue