diff --git a/TestSelenium.js b/TestSelenium.js index 562fb29c1..f9418a361 100644 --- a/TestSelenium.js +++ b/TestSelenium.js @@ -37,10 +37,13 @@ var nt = nThen; console.log('\n\n-----TEST ' + url + ' -----'); driver.get(url); var waitTo = setTimeout(function () { - console.log("no report in 10 seconds, timing out"); + console.log("no report in 20 seconds, timing out"); failed = true; - }, 10000); + done(); + done = undefined; + }, 20000); var logMore = function () { + if (!done) { return; } driver.executeScript(SC_GET_DATA).then(waitFor(function (dataS) { var data = JSON.parse(dataS); data.forEach(function (d) { diff --git a/www/assert/main.js b/www/assert/main.js index 66ac5eb7b..d47ec0210 100644 --- a/www/assert/main.js +++ b/www/assert/main.js @@ -29,6 +29,7 @@ define([ ASSERTS.forEach(function (f, index) { f(function (err) { + console.log("test " + index); done(err, index); }, index); });