made stress param actually work

pull/39/head^2
Tim Robinson 2015-03-05 15:45:19 +00:00
rodzic dd708342df
commit 187c413fa7
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -337,7 +337,8 @@
function done(err) {
console.log("/" + Array(20).join("-"));
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");
location.reload();
}