mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Increase timeout for all qunit tests.
* Timeout any test that takes more than 10 seconds.
This commit is contained in:
4
vendor/assets/javascripts/run-qunit.js
vendored
4
vendor/assets/javascripts/run-qunit.js
vendored
@@ -36,7 +36,7 @@ page.open(args[0], function(status) {
|
|||||||
} else {
|
} else {
|
||||||
page.evaluate(logQUnit);
|
page.evaluate(logQUnit);
|
||||||
|
|
||||||
var timeout = parseInt(args[1] || 120000, 10),
|
var timeout = parseInt(args[1] || 130000, 10),
|
||||||
start = Date.now();
|
start = Date.now();
|
||||||
|
|
||||||
var interval = setInterval(function() {
|
var interval = setInterval(function() {
|
||||||
@@ -68,6 +68,8 @@ function logQUnit() {
|
|||||||
|
|
||||||
console.log("\nRunning: " + JSON.stringify(QUnit.urlParams) + "\n");
|
console.log("\nRunning: " + JSON.stringify(QUnit.urlParams) + "\n");
|
||||||
|
|
||||||
|
QUnit.config.testTimeout = 10000;
|
||||||
|
|
||||||
QUnit.moduleDone(function(context) {
|
QUnit.moduleDone(function(context) {
|
||||||
if (context.failed) {
|
if (context.failed) {
|
||||||
var msg = "Module Failed: " + context.name + "\n" + testErrors.join("\n");
|
var msg = "Module Failed: " + context.name + "\n" + testErrors.join("\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user