mirror of
https://github.com/discourse/discourse.git
synced 2025-04-16 20:29:03 +08:00
Increase timeout for all qunit tests.
* Timeout any test that takes more than 10 seconds.
This commit is contained in:
parent
5b03cc1433
commit
ed78b47745
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 {
|
||||
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…
x
Reference in New Issue
Block a user