From ed78b47745d5197fdc9b412259c1996ac32d797b Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 16 Nov 2016 18:02:16 +0800 Subject: [PATCH] Increase timeout for all qunit tests. * Timeout any test that takes more than 10 seconds. --- vendor/assets/javascripts/run-qunit.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/assets/javascripts/run-qunit.js b/vendor/assets/javascripts/run-qunit.js index f2bca495325..97fce3dc945 100644 --- a/vendor/assets/javascripts/run-qunit.js +++ b/vendor/assets/javascripts/run-qunit.js @@ -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");