diff options
author | Romans Kasperovics <romans.kasperovics@mongodb.com> | 2022-12-20 11:26:52 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-12-20 11:59:17 +0000 |
commit | 5324ef1fab3f06ad008050ac12fadb12b8de877c (patch) | |
tree | 8d275c491bf7f5f378947269dca3d3c53ad0abf8 /jstests/sharding/change_stream_no_shards.js | |
parent | f84b645556a27b078b61260d55c53b664aff8b7f (diff) | |
download | mongo-5324ef1fab3f06ad008050ac12fadb12b8de877c.tar.gz |
SERVER-70042 Assign expected / actual semantics to assert.docEq() arguments
Diffstat (limited to 'jstests/sharding/change_stream_no_shards.js')
-rw-r--r-- | jstests/sharding/change_stream_no_shards.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/sharding/change_stream_no_shards.js b/jstests/sharding/change_stream_no_shards.js index b6c7c7c9f61..901473e221f 100644 --- a/jstests/sharding/change_stream_no_shards.js +++ b/jstests/sharding/change_stream_no_shards.js @@ -12,27 +12,27 @@ const testDB = st.s.getDB("test"); // cursor response. let csCmdRes = assert.commandWorked( testDB.runCommand({aggregate: "testing", pipeline: [{$changeStream: {}}], cursor: {}})); -assert.docEq(csCmdRes.cursor.firstBatch, []); +assert.docEq([], csCmdRes.cursor.firstBatch); assert.eq(csCmdRes.cursor.id, 0); // Test that attempting to open a whole-db stream results in an empty, closed cursor response. csCmdRes = assert.commandWorked( testDB.runCommand({aggregate: 1, pipeline: [{$changeStream: {}}], cursor: {}})); -assert.docEq(csCmdRes.cursor.firstBatch, []); +assert.docEq([], csCmdRes.cursor.firstBatch); assert.eq(csCmdRes.cursor.id, 0); // Test that attempting to open a cluster-wide stream results in an empty, closed cursor // response. csCmdRes = assert.commandWorked(adminDB.runCommand( {aggregate: 1, pipeline: [{$changeStream: {allChangesForCluster: true}}], cursor: {}})); -assert.docEq(csCmdRes.cursor.firstBatch, []); +assert.docEq([], csCmdRes.cursor.firstBatch); assert.eq(csCmdRes.cursor.id, 0); // Test that a regular, non-$changeStream aggregation also results in an empty cursor when no // shards are present. const nonCsCmdRes = assert.commandWorked( testDB.runCommand({aggregate: "testing", pipeline: [{$match: {}}], cursor: {}})); -assert.docEq(nonCsCmdRes.cursor.firstBatch, []); +assert.docEq([], nonCsCmdRes.cursor.firstBatch); assert.eq(nonCsCmdRes.cursor.id, 0); st.stop(); |