diff --git a/js/client/modules/@arangodb/test-utils.js b/js/client/modules/@arangodb/test-utils.js index 51cdd08e14..61b6eff3a9 100644 --- a/js/client/modules/@arangodb/test-utils.js +++ b/js/client/modules/@arangodb/test-utils.js @@ -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, diff --git a/js/common/tests/replication/replication.js b/js/common/tests/replication/replication.js index b687c7f2c0..51286395f4 100644 --- a/js/common/tests/replication/replication.js +++ b/js/common/tests/replication/replication.js @@ -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); + } }, //////////////////////////////////////////////////////////////////////////////// diff --git a/js/server/tests/replication/replication-ongoing.js b/js/server/tests/replication/replication-ongoing.js index ef3c1081d7..9e7b95e6e0 100644 --- a/js/server/tests/replication/replication-ongoing.js +++ b/js/server/tests/replication/replication-ongoing.js @@ -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"); }, ////////////////////////////////////////////////////////////////////////////////