mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Ensure new test passes with --disable-oplog
This commit is contained in:
@@ -1906,9 +1906,10 @@ Meteor.isServer && Tinytest.add("mongo-livedata - oplog - include selector field
|
||||
|
||||
// Wait until we've processed the insert oplog entry. (If the insert shows up
|
||||
// during the observeChanges, the bug in question is not consistently
|
||||
// reproduced.)
|
||||
MongoInternals.defaultRemoteCollectionDriver().mongo._oplogHandle.waitUntilCaughtUp();
|
||||
|
||||
// reproduced.) We don't have to do this for polling observe (eg
|
||||
// --disable-oplog).
|
||||
var oplog = MongoInternals.defaultRemoteCollectionDriver().mongo._oplogHandle;
|
||||
oplog && oplog.waitUntilCaughtUp();
|
||||
|
||||
var output = [];
|
||||
var handle = coll.find({a: 1, b: 2}, {fields: {c: 1}}).observeChanges({
|
||||
|
||||
Reference in New Issue
Block a user