1
0
Fork 0

fix various issues

This commit is contained in:
jsteemann 2017-09-13 09:03:28 +02:00
parent 2554718122
commit f8d8a561a4
3 changed files with 19 additions and 13 deletions

View File

@ -220,7 +220,7 @@ function performTests (options, testList, testname, runFn, serverOptions, startS
collectionsAfter.push(collection._name); collectionsAfter.push(collection._name);
}); });
let delta = diffArray(collectionsBefore, collectionsAfter); let delta = diffArray(collectionsBefore, collectionsAfter);
print(delta) print(delta);
if ((delta.length !== 0) && (! _.isEqual(delta, ['_foxxlog']))) { if ((delta.length !== 0) && (! _.isEqual(delta, ['_foxxlog']))) {
results[te] = { results[te] = {
status: false, status: false,

View File

@ -443,6 +443,7 @@ function ReplicationLoggerSuite () {
var c = db._create("_unittests", { isSystem : true }); var c = db._create("_unittests", { isSystem : true });
try {
var entry = getLogEntries(tick, 2000)[0]; var entry = getLogEntries(tick, 2000)[0];
assertEqual(2000, entry.type); assertEqual(2000, entry.type);
@ -458,6 +459,9 @@ function ReplicationLoggerSuite () {
assertEqual(true, entry.data.waitForSync); assertEqual(true, entry.data.waitForSync);
tick = getLastLogTick(); tick = getLastLogTick();
} finally {
db._drop("_unittests", true);
}
}, },
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////

View File

@ -195,6 +195,7 @@ function ReplicationSuite() {
db._drop(cn); db._drop(cn);
db._drop(cn2); db._drop(cn2);
db._drop(cn + "Renamed");
}, },
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
@ -213,6 +214,7 @@ function ReplicationSuite() {
db._drop(cn); db._drop(cn);
db._drop(cn2); db._drop(cn2);
db._drop(cn + "Renamed");
}, },
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////