summaryrefslogtreecommitdiff
path: root/jstests/core/profile_distinct.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_distinct.js
parent4f763e1509ab88aef9c9e7db45d9699f94382bf2 (diff)
downloadmongo-5ecb390a5ec416b995f2049c1fdc25c84d2c885a.tar.gz
SERVER-24063 Add collation to logs, profile and currentOp.
Diffstat (limited to 'jstests/core/profile_distinct.js')
-rw-r--r--jstests/core/profile_distinct.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/core/profile_distinct.js b/jstests/core/profile_distinct.js
index 0549b181b7a..878c681df0a 100644
--- a/jstests/core/profile_distinct.js
+++ b/jstests/core/profile_distinct.js
@@ -22,7 +22,7 @@
}
assert.commandWorked(coll.createIndex({b: 1}));
- coll.distinct("a", {b: {$gte: 5}});
+ coll.distinct("a", {b: {$gte: 5}}, {collation: {locale: "fr"}});
var profileObj = getLatestProfilerEntry(testDB);
assert.eq(profileObj.ns, coll.getFullName(), tojson(profileObj));
@@ -33,6 +33,7 @@
assert(profileObj.execStats.hasOwnProperty("stage"), tojson(profileObj));
assert.eq(profileObj.protocol, getProfilerProtocolStringForCommand(conn), tojson(profileObj));
assert.eq(coll.getName(), profileObj.command.distinct, tojson(profileObj));
+ assert.eq(profileObj.command.collation, {locale: "fr"}, tojson(profileObj));
assert(profileObj.hasOwnProperty("responseLength"), tojson(profileObj));
assert(profileObj.hasOwnProperty("millis"), tojson(profileObj));
assert(profileObj.hasOwnProperty("numYield"), tojson(profileObj));