summaryrefslogtreecommitdiff
path: root/jstests/core/profile_mapreduce.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_mapreduce.js
parent4f763e1509ab88aef9c9e7db45d9699f94382bf2 (diff)
downloadmongo-5ecb390a5ec416b995f2049c1fdc25c84d2c885a.tar.gz
SERVER-24063 Add collation to logs, profile and currentOp.
Diffstat (limited to 'jstests/core/profile_mapreduce.js')
-rw-r--r--jstests/core/profile_mapreduce.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/jstests/core/profile_mapreduce.js b/jstests/core/profile_mapreduce.js
index 2538862ebba..20e3b2e8fbf 100644
--- a/jstests/core/profile_mapreduce.js
+++ b/jstests/core/profile_mapreduce.js
@@ -30,7 +30,9 @@
}
assert.commandWorked(coll.createIndex({a: 1}));
- coll.mapReduce(mapFunction, reduceFunction, {query: {a: {$gte: 0}}, out: {inline: 1}});
+ coll.mapReduce(mapFunction,
+ reduceFunction,
+ {query: {a: {$gte: 0}}, out: {inline: 1}, collation: {locale: "fr"}});
var profileObj = getLatestProfilerEntry(testDB);
@@ -42,6 +44,7 @@
assert(profileObj.execStats.hasOwnProperty("stage"), tojson(profileObj));
assert.eq(profileObj.protocol, getProfilerProtocolStringForCommand(conn), tojson(profileObj));
assert.eq(coll.getName(), profileObj.command.mapreduce, tojson(profileObj));
+ assert.eq({locale: "fr"}, profileObj.command.collation, tojson(profileObj));
assert(profileObj.hasOwnProperty("responseLength"), tojson(profileObj));
assert(profileObj.hasOwnProperty("millis"), tojson(profileObj));
assert(profileObj.hasOwnProperty("numYield"), tojson(profileObj));