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

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

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");
}, },
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////