summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Andrei <mihai.andrei@10gen.com>2021-02-19 16:35:49 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-02-22 20:28:13 +0000
commitf634f73f678cfa996279c9a8eeac24e028a9b207 (patch)
tree5612373df4737353b1b1b8713acffcd0701f1f6c
parent3eb157099b6a405297bac39168712039751bac8e (diff)
downloadmongo-f634f73f678cfa996279c9a8eeac24e028a9b207.tar.gz
SERVER-54667 Robustify positional operator test case in jstests/core/collation_update.js
(cherry picked from commit 8973f963f3f600f172e59fadc25b9c6c5d97701f)
-rw-r--r--jstests/core/collation_update.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/core/collation_update.js b/jstests/core/collation_update.js
index ed4b57358ac..e1b7a34c540 100644
--- a/jstests/core/collation_update.js
+++ b/jstests/core/collation_update.js
@@ -232,8 +232,7 @@ if (db.getMongo().writeMode() === "commands") {
assert.eq(arr[0], "foo");
assert.eq(arr[1], "FOO");
- // "foo" == "FOO" (case-insensitive) so no update occurs.
- assert.commandWorked(coll.insert({a: ["foo", "FOO"]}));
+ // "foo" == "FOO" (case-insensitive) so an update occurs.
assert.commandWorked(coll.update({a: "FOO"}, {$set: {"a.$": "FOO"}}, caseInsensitive));
var arr = coll.findOne().a;
assert.eq(arr.length, 2);