1
0
Fork 0

try to fix non-deterministic test (#3514)

This commit is contained in:
Jan 2017-10-25 21:08:10 +02:00 committed by GitHub
parent 9eb5e1545f
commit b1584cc7ba
1 changed files with 2 additions and 0 deletions

View File

@ -899,6 +899,8 @@ function ReplicationOtherDBSuite() {
// Now test if the Slave did replicate the new database...
db._useDatabase(dbName);
// wait for collection to appear
waitUntil(function() { return (db._collection(cn) !== null); });
assertEqual(50, collectionCount(cn), "The slave inserted the new collection data into the old one, it skipped the drop.");
assertTrue(replication.globalApplier.state().state.running);