From dd708342dfd4474a98d0ace1a400fdab8fbdd052 Mon Sep 17 00:00:00 2001 From: Tim Robinson Date: Thu, 5 Mar 2015 15:45:19 +0000 Subject: [PATCH] Add stress parameter to keep refreshing until the test fails. Made npm run ctest work without auth --- plugins/c9.vfs.standalone/www/test.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/c9.vfs.standalone/www/test.html b/plugins/c9.vfs.standalone/www/test.html index 8c4d8a9f..dbffaac2 100644 --- a/plugins/c9.vfs.standalone/www/test.html +++ b/plugins/c9.vfs.standalone/www/test.html @@ -337,6 +337,10 @@ 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) { + console.log("Stress testing and found no errors so reloading"); + location.reload(); + } callback && callback(err); } }