summaryrefslogtreecommitdiff
path: root/jstests/core/return_key.js
diff options
context:
space:
mode:
authorIan Boros <ian.boros@mongodb.com>2019-10-29 18:47:43 +0000
committerevergreen <evergreen@mongodb.com>2019-10-29 18:47:43 +0000
commitd6098dae6d561026e865c9fe6f1e9ed77ca63d15 (patch)
treeb5e65e381c3fe934ae1491e882fff3cc879770de /jstests/core/return_key.js
parentee7f31f5b340c84994bee9dc1e3fb37f2d6b8c2c (diff)
downloadmongo-d6098dae6d561026e865c9fe6f1e9ed77ca63d15.tar.gz
SERVER-44232 remove TODO in return_key.js
Diffstat (limited to 'jstests/core/return_key.js')
-rw-r--r--jstests/core/return_key.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/jstests/core/return_key.js b/jstests/core/return_key.js
index 771184cccef..c9efc431a97 100644
--- a/jstests/core/return_key.js
+++ b/jstests/core/return_key.js
@@ -83,10 +83,7 @@ assert.eq(results, [
]);
// returnKey with a sortKey $meta projection on a nested field.
-// TODO: SERVER-42435: Re-enable this test once 4.2 find() projection parser is removed.
-if (false) {
- results =
- coll.find({}, {"c.d": {$meta: "sortKey"}}).hint({a: 1}).sort({b: 1}).returnKey().toArray();
- assert.eq(results, [{a: 3, c: {d: {'': 1}}}, {a: 2, c: {d: {'': 1}}}, {a: 1, c: {d: {'': 1}}}]);
-}
+results =
+ coll.find({}, {"c.d": {$meta: "sortKey"}}).hint({a: 1}).sort({b: 1}).returnKey().toArray();
+assert.eq(results, [{a: 3, c: {d: {'': 1}}}, {a: 2, c: {d: {'': 2}}}, {a: 1, c: {d: {'': 3}}}]);
})();