Increase timeout for all qunit tests.

* Timeout any test that takes more than 10 seconds.
This commit is contained in:
Guo Xiang Tan 2016-11-16 18:02:16 +08:00
parent 5b03cc1433
commit ed78b47745
1 changed files with 3 additions and 1 deletions

View File

@ -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");