summaryrefslogtreecommitdiff
path: root/jstests/aggregation/extras/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/aggregation/extras/utils.js')
-rw-r--r--jstests/aggregation/extras/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/aggregation/extras/utils.js b/jstests/aggregation/extras/utils.js
index 2dd1038388c..68b2597c533 100644
--- a/jstests/aggregation/extras/utils.js
+++ b/jstests/aggregation/extras/utils.js
@@ -276,7 +276,7 @@ function assertErrorCode(coll, pipe, code, errmsg) {
var cursorRes = coll.runCommand("aggregate", cmd);
if (cursorRes.ok) {
var followupBatchSize = 0; // default
- var cursor = new DBCommandCursor(coll.getMongo(), cursorRes, followupBatchSize);
+ var cursor = new DBCommandCursor(cursorRes._mongo, cursorRes, followupBatchSize);
var error = assert.throws(function() {
cursor.itcount();