kopia lustrzana https://github.com/c9/core
made stress param actually work
rodzic
dd708342df
commit
187c413fa7
|
@ -337,7 +337,8 @@
|
||||||
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");
|
||||||
if (!err && document.URL.indexOf("stress=1") >= 0) {
|
/* 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");
|
console.log("Stress testing and found no errors so reloading");
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue