1
0
Fork 0

wait longer for server start

This commit is contained in:
Frank Celler 2016-02-02 00:03:52 +01:00
parent 75d5cabcaf
commit b80f9d3bb7
2 changed files with 24 additions and 8 deletions

View File

@ -325,11 +325,19 @@ exports.createDeleteUpdateParallel = function(opts) {
return a.count() === b.count();
};
sleep(30);
let m = 0;
const m = db._query("FOR u IN @@results FILTER u.started RETURN 1", {
'@results': 'results'
}).count();
for (let i = 0; i < 10; ++i) {
m = db._query("FOR u IN @@results FILTER u.started RETURN 1", {
'@results': 'results'
}).count();
if (m === n) {
break;
}
sleep(30);
}
if (m < n) {
print("cannot start enough workers (want", n + ",", "got", m + "),",

View File

@ -276,11 +276,19 @@ exports.lockCycleParallel = function(opts) {
return a.count() === b.count();
};
sleep(30);
let m = 0;
const m = db._query("FOR u IN @@results FILTER u.started RETURN 1", {
'@results': 'results'
}).count();
for (let i = 0; i < 10; ++i) {
m = db._query("FOR u IN @@results FILTER u.started RETURN 1", {
'@results': 'results'
}).count();
if (m === n) {
break;
}
sleep(30);
}
if (m < n) {
print("cannot start enough workers (want", n + ",", "got", m + "),",