Trying to improve the tests which fail always when running remotely
This commit is contained in:
parent
71bd808e4f
commit
c8bd1bb2ac
@ -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) {
|
||||
|
||||
@ -29,6 +29,7 @@ define([
|
||||
|
||||
ASSERTS.forEach(function (f, index) {
|
||||
f(function (err) {
|
||||
console.log("test " + index);
|
||||
done(err, index);
|
||||
}, index);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user