summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorAndrii Dobroshynski <andrii.dobroshynski@mongodb.com>2021-12-06 16:07:30 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-12-06 16:38:41 +0000
commit1505f67f70b884ae6ddb1f31d7eb752ec0fc993c (patch)
tree765a34382cf6f47c89101574ea8b2a904b8a4a49 /jstests
parent909c30b0ff8488299215ccd5ea96d6e3b625433d (diff)
downloadmongo-1505f67f70b884ae6ddb1f31d7eb752ec0fc993c.tar.gz
SERVER-60207 Enable feature flag for $sortArray
Diffstat (limited to 'jstests')
-rw-r--r--jstests/aggregation/expressions/sortArray.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/jstests/aggregation/expressions/sortArray.js b/jstests/aggregation/expressions/sortArray.js
index b63b94c6d5a..7be6d15b87d 100644
--- a/jstests/aggregation/expressions/sortArray.js
+++ b/jstests/aggregation/expressions/sortArray.js
@@ -37,20 +37,6 @@ let assertDBOutputEquals = (expected, output) => {
assert.eq(expected, output[0].sorted);
};
-const isSortArrayEnabled =
- db.adminCommand({getParameter: 1, featureFlagSortArray: 1}).featureFlagSortArray.value;
-
-if (!isSortArrayEnabled) {
- // Verify that $sortArray cannot be used if the feature flag is set to false and ignore the
- // rest of the test.
- assert.commandFailedWithCode(coll.runCommand("aggregate", {
- pipeline: [{$project: {sorted: {$sortArray: {sortBy: 1, input: {$literal: [1, 2]}}}}}],
- cursor: {}
- }),
- 31325);
- return;
-}
-
assertErrorCode(coll, [{$project: {sorted: {$sortArray: 1}}}], 2942500);
assertErrorCode(coll, [{$project: {sorted: {$sortArray: "$num"}}}], 2942500);