summaryrefslogtreecommitdiff
path: root/jstests/sharding/change_stream_no_shards.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/change_stream_no_shards.js')
-rw-r--r--jstests/sharding/change_stream_no_shards.js8
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();