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);
});
let delta = diffArray(collectionsBefore, collectionsAfter);
print(delta)
print(delta);
if ((delta.length !== 0) && (! _.isEqual(delta, ['_foxxlog']))) {
results[te] = {
status: false,

View File

@ -442,22 +442,26 @@ function ReplicationLoggerSuite () {
var tick = getLastLogTick();
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(c._id, entry.cid);
assertEqual(c.name(), entry.data.name);
assertEqual(2000, entry.type);
assertEqual(c._id, entry.cid);
assertEqual(c.name(), entry.data.name);
tick = getLastLogTick();
c.properties({ waitForSync : true });
tick = getLastLogTick();
c.properties({ waitForSync : true });
entry = getLogEntries(tick, 2003)[0];
assertEqual(2003, entry.type);
assertEqual(c._id, entry.cid);
assertEqual(true, entry.data.waitForSync);
entry = getLogEntries(tick, 2003)[0];
assertEqual(2003, entry.type);
assertEqual(c._id, entry.cid);
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(cn2);
db._drop(cn + "Renamed");
},
////////////////////////////////////////////////////////////////////////////////
@ -213,6 +214,7 @@ function ReplicationSuite() {
db._drop(cn);
db._drop(cn2);
db._drop(cn + "Renamed");
},
////////////////////////////////////////////////////////////////////////////////