summaryrefslogtreecommitdiff
path: root/jstests/sharding/change_stream_lookup_single_shard_cluster.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/change_stream_lookup_single_shard_cluster.js')
-rw-r--r--jstests/sharding/change_stream_lookup_single_shard_cluster.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/change_stream_lookup_single_shard_cluster.js b/jstests/sharding/change_stream_lookup_single_shard_cluster.js
index 3d8117c619e..e962ee4a92a 100644
--- a/jstests/sharding/change_stream_lookup_single_shard_cluster.js
+++ b/jstests/sharding/change_stream_lookup_single_shard_cluster.js
@@ -38,10 +38,10 @@ mongosColl.update({_id: 1}, {$set: {updated: true}});
// Verify that the document is successfully retrieved from the single-collection and whole-db
// change streams.
assert.soon(() => stream.hasNext());
-assert.docEq(stream.next().fullDocument, {_id: 1, updated: true});
+assert.docEq({_id: 1, updated: true}, stream.next().fullDocument);
assert.soon(() => wholeDbStream.hasNext());
-assert.docEq(wholeDbStream.next().fullDocument, {_id: 1, updated: true});
+assert.docEq({_id: 1, updated: true}, wholeDbStream.next().fullDocument);
stream.close();
wholeDbStream.close();