mirror of https://gitee.com/bigwinds/arangodb
abort testing if we fail to get the currently available collections during server startup (#8442)
This commit is contained in:
parent
888a20bcf7
commit
c2042c86e9
|
@ -176,9 +176,20 @@ function performTests (options, testList, testname, runFn, serverOptions, startS
|
||||||
|
|
||||||
let collectionsBefore = [];
|
let collectionsBefore = [];
|
||||||
if (!serverDead) {
|
if (!serverDead) {
|
||||||
db._collections().forEach(collection => {
|
try {
|
||||||
collectionsBefore.push(collection._name);
|
db._collections().forEach(collection => {
|
||||||
});
|
collectionsBefore.push(collection._name);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
catch (x) {
|
||||||
|
results[te] = {
|
||||||
|
status: false,
|
||||||
|
message: 'failed to fetch the currently available collections: ' + x.message + '. Original test status: ' + JSON.stringify(results[te])
|
||||||
|
};
|
||||||
|
continueTesting = false;
|
||||||
|
serverDead = true;
|
||||||
|
first = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
while (first || options.loopEternal) {
|
while (first || options.loopEternal) {
|
||||||
if (!continueTesting) {
|
if (!continueTesting) {
|
||||||
|
|
Loading…
Reference in New Issue