diff options
author | David Hatch <david.hatch@mongodb.com> | 2016-07-15 17:17:26 -0400 |
---|---|---|
committer | David Hatch <david.hatch@mongodb.com> | 2016-07-20 17:25:21 -0400 |
commit | 5ecb390a5ec416b995f2049c1fdc25c84d2c885a (patch) | |
tree | 3c8908a571c5638f66c3dc901632f0497d5b97f2 /jstests/core/profile_distinct.js | |
parent | 4f763e1509ab88aef9c9e7db45d9699f94382bf2 (diff) | |
download | mongo-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.js | 3 |
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)); |