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