summaryrefslogtreecommitdiff
path: root/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js')
-rw-r--r--jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js b/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js
index 39dd6a7417c..cb830f804e1 100644
--- a/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js
+++ b/jstests/sharding/change_streams_update_lookup_shard_metadata_missing.js
@@ -65,14 +65,14 @@ assert.soonNoExcept(
// this alone does not prove that the multi-update actually wrote its shard key into the oplog.
csCursor = mongosColl.watch([], {resumeAfter: resumeToken, fullDocument: "updateLookup"});
assert.soon(() => csCursor.hasNext());
-assert.docEq(csCursor.next().fullDocument, {_id: 0, a: -100, updated: true});
+assert.docEq({_id: 0, a: -100, updated: true}, csCursor.next().fullDocument);
// Now insert a new document with the same _id on the other shard. Update lookup will be able to
// distinguish between the two, proving that they both have full shard keys available.
assert.commandWorked(mongosColl.insert({_id: 0, a: 100}));
csCursor = mongosColl.watch([], {resumeAfter: resumeToken, fullDocument: "updateLookup"});
assert.soon(() => csCursor.hasNext());
-assert.docEq(csCursor.next().fullDocument, {_id: 0, a: -100, updated: true});
+assert.docEq({_id: 0, a: -100, updated: true}, csCursor.next().fullDocument);
st.stop();
})(); \ No newline at end of file