kopia lustrzana https://github.com/c9/core
Merge pull request +6493 from c9/fix/client-test-stress
Add stress flag to client unit tests.pull/39/head^2
commit
7355f57b59
|
@ -337,6 +337,11 @@
|
||||||
function done(err) {
|
function done(err) {
|
||||||
console.log("/" + Array(20).join("-"));
|
console.log("/" + Array(20).join("-"));
|
||||||
console.log("finished running " + (i - 1) + " tests from " + all.length + ". In " + (Date.now() - t) + "ms");
|
console.log("finished running " + (i - 1) + " tests from " + all.length + ". In " + (Date.now() - t) + "ms");
|
||||||
|
/* stress param makes the page continually refresh until a failure is found */
|
||||||
|
if (document.URL.indexOf("stress=1") >= 0 && getReport() && !getReport().stats.failures) {
|
||||||
|
console.log("Stress testing and found no errors so reloading");
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
callback && callback(err);
|
callback && callback(err);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue