summaryrefslogtreecommitdiff
path: root/jstests/core/operation_latency_histogram.js
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2017-01-11 17:14:40 -0500
committerTess Avitabile <tess.avitabile@mongodb.com>2017-01-13 17:56:02 -0500
commit92e599237444912607e70a745fe5c0aa00dd4caf (patch)
tree3241f19d67635438a2ceb142d0584d0bb38b5bce /jstests/core/operation_latency_histogram.js
parent5c2aac3b24d0680418ee8fab1fa6e53be2a0eede (diff)
downloadmongo-92e599237444912607e70a745fe5c0aa00dd4caf.tar.gz
SERVER-24623 Remove single document aggregation result option
Diffstat (limited to 'jstests/core/operation_latency_histogram.js')
-rw-r--r--jstests/core/operation_latency_histogram.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/operation_latency_histogram.js b/jstests/core/operation_latency_histogram.js
index 1e3f1a59b95..6e6f7ec1539 100644
--- a/jstests/core/operation_latency_histogram.js
+++ b/jstests/core/operation_latency_histogram.js
@@ -13,11 +13,11 @@
// Test aggregation command output format.
var commandResult = testDB.runCommand(
- {aggregate: testColl.getName(), pipeline: [{$collStats: {latencyStats: {}}}]});
+ {aggregate: testColl.getName(), pipeline: [{$collStats: {latencyStats: {}}}], cursor: {}});
assert.commandWorked(commandResult);
- assert(commandResult.result.length == 1);
+ assert(commandResult.cursor.firstBatch.length == 1);
- var stats = commandResult.result[0];
+ var stats = commandResult.cursor.firstBatch[0];
var histogramTypes = ["reads", "writes", "commands"];
assert(stats.hasOwnProperty("localTime"));