summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2021-11-15 11:36:57 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-15 12:49:41 +0000
commitc574a0003890dc7e3be415526b5b29eac4faf17b (patch)
tree59be725cb62b3bae1be8cf58bed0bca291af3246 /jstests/noPassthrough
parenta9270c3bee7d54aa1b257d95aa42d5f6b4bda4d9 (diff)
downloadmongo-c574a0003890dc7e3be415526b5b29eac4faf17b.tar.gz
SERVER-60502 Add $fill stage
Diffstat (limited to 'jstests/noPassthrough')
-rw-r--r--jstests/noPassthrough/non_multikey_ixscan_on_path_with_positional_component.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/noPassthrough/non_multikey_ixscan_on_path_with_positional_component.js b/jstests/noPassthrough/non_multikey_ixscan_on_path_with_positional_component.js
index 189808a3161..a17ee3ed3c1 100644
--- a/jstests/noPassthrough/non_multikey_ixscan_on_path_with_positional_component.js
+++ b/jstests/noPassthrough/non_multikey_ixscan_on_path_with_positional_component.js
@@ -26,6 +26,7 @@ assert.commandWorked(coll.createIndex({"a.0.b": 1, c: 1}));
// array, since we index on a particular element of the array, the index should not be turned into
// multikey by this operation.
const doc = {
+ _id: 0,
a: [{b: 1}],
c: 1
};
@@ -56,7 +57,7 @@ assert.eq(ixscan.stage, "IXSCAN", explain);
assert.eq(ixscan.isMultiKey, false, explain);
// Now execute the query and validate the result.
-assertArrayEq(cursor.toArray(), [doc]);
+assertArrayEq({actual: cursor.toArray(), expected: [doc]});
MongoRunner.stopMongod(conn);
}());