summaryrefslogtreecommitdiff
path: root/jstests/change_streams
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2018-01-11 14:00:27 -0500
committerCharlie Swanson <charlie.swanson@mongodb.com>2018-01-19 09:55:59 -0500
commit87c9442cc30d4101693bb8ccb6fd4509aa048558 (patch)
tree99ab7b36d89776693c09f271e4de4fd4f64846e3 /jstests/change_streams
parent71ae3ed5b7e99ddb629ec64b85f4bd75b73aff17 (diff)
downloadmongo-87c9442cc30d4101693bb8ccb6fd4509aa048558.tar.gz
SERVER-31785 Use 2 shards in sharded jscore passthrough.
Diffstat (limited to 'jstests/change_streams')
-rw-r--r--jstests/change_streams/lookup_post_image.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/change_streams/lookup_post_image.js b/jstests/change_streams/lookup_post_image.js
index bbf2b8027c7..46f5bfd93bf 100644
--- a/jstests/change_streams/lookup_post_image.js
+++ b/jstests/change_streams/lookup_post_image.js
@@ -7,7 +7,7 @@
load("jstests/libs/change_stream_util.js");
load("jstests/libs/collection_drop_recreate.js"); // For assert[Drop|Create]Collection.
- load("jstests/libs/fixture_helpers.js"); // For awaitLastOpCommitted().
+ load("jstests/libs/fixture_helpers.js"); // For FixtureHelpers.
load("jstests/replsets/libs/two_phase_drops.js"); // For 'TwoPhaseDropCollectionTest'.
let cst = new ChangeStreamTest(db);
@@ -110,7 +110,7 @@
// If this test is running with secondary read preference, it's necessary for the remove
// to propagate to all secondary nodes and be available for majority reads before we can
// assume looking up the document will fail.
- FixtureHelpers.awaitLastOpCommitted();
+ FixtureHelpers.awaitLastOpCommitted(db);
latestChange = cst.getOneChange(cursor);
assert.eq(latestChange.operationType, "update");
@@ -162,7 +162,7 @@
// If this test is running with secondary read preference, it's necessary for the drop
// to propagate to all secondary nodes and be available for majority reads before we can
// assume looking up the document will fail.
- FixtureHelpers.awaitLastOpCommitted();
+ FixtureHelpers.awaitLastOpCommitted(db);
// Check the next $changeStream entry; this is the test document inserted above.
latestChange = cst.getOneChange(cursor);