1
0
Fork 0

Fix error handling in resilienceMove test.

This commit is contained in:
Max Neunhoeffer 2016-12-16 11:02:13 +01:00
parent 86a0620525
commit a7f295bfe8
1 changed files with 8 additions and 3 deletions

View File

@ -305,9 +305,14 @@ function MovingShardsSuite () {
Object.keys(state.Pending).length === 0) {
return true;
}
console.info("Waiting for supervision jobs to finish:",
"ToDo jobs:", Object.keys(state.ToDo).length,
"Pending jobs:", Object.keys(state.Pending).length);
if (state.error) {
console.warn("Waiting for supervision jobs to finish:",
"Currently no agency communication possible.");
} else {
console.info("Waiting for supervision jobs to finish:",
"ToDo jobs:", Object.keys(state.ToDo).length,
"Pending jobs:", Object.keys(state.Pending).length);
}
wait(1.0);
}
return false;