summaryrefslogtreecommitdiff
path: root/jstests/core/profile_delete.js
diff options
context:
space:
mode:
authorDavid Hatch <david.hatch@mongodb.com>2016-07-15 17:17:26 -0400
committerDavid Hatch <david.hatch@mongodb.com>2016-07-20 17:25:21 -0400
commit5ecb390a5ec416b995f2049c1fdc25c84d2c885a (patch)
tree3c8908a571c5638f66c3dc901632f0497d5b97f2 /jstests/core/profile_delete.js
parent4f763e1509ab88aef9c9e7db45d9699f94382bf2 (diff)
downloadmongo-5ecb390a5ec416b995f2049c1fdc25c84d2c885a.tar.gz
SERVER-24063 Add collation to logs, profile and currentOp.
Diffstat (limited to 'jstests/core/profile_delete.js')
-rw-r--r--jstests/core/profile_delete.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/jstests/core/profile_delete.js b/jstests/core/profile_delete.js
index b5906addd9b..5ff39cb026e 100644
--- a/jstests/core/profile_delete.js
+++ b/jstests/core/profile_delete.js
@@ -21,12 +21,18 @@
}
assert.commandWorked(coll.createIndex({a: 1}));
- assert.writeOK(coll.remove({a: {$gte: 2}, b: {$gte: 2}}, {justOne: true}));
+ assert.writeOK(coll.remove({a: {$gte: 2}, b: {$gte: 2}},
+ db.getMongo().writeMode() === "commands"
+ ? {justOne: true, collation: {locale: "fr"}}
+ : {justOne: true}));
var profileObj = getLatestProfilerEntry(testDB);
assert.eq(profileObj.ns, coll.getFullName(), tojson(profileObj));
assert.eq(profileObj.op, "remove", tojson(profileObj));
+ if (db.getMongo().writeMode() === "commands") {
+ assert.eq(profileObj.collation, {locale: "fr"}, tojson(profileObj));
+ }
assert.eq(profileObj.ndeleted, 1, tojson(profileObj));
assert.eq(profileObj.keysExamined, 1, tojson(profileObj));
assert.eq(profileObj.docsExamined, 1, tojson(profileObj));