diff options
Diffstat (limited to 'jstests/sharding/authCommands.js')
-rw-r--r-- | jstests/sharding/authCommands.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/jstests/sharding/authCommands.js b/jstests/sharding/authCommands.js index da8f0d80cab..a27b176cdf0 100644 --- a/jstests/sharding/authCommands.js +++ b/jstests/sharding/authCommands.js @@ -132,9 +132,10 @@ res = checkCommandSucceeded(testDB, { aggregate: 'foo', - pipeline: [{$project: {j: 1}}, {$group: {_id: 'j', sum: {$sum: '$j'}}}] + pipeline: [{$project: {j: 1}}, {$group: {_id: 'j', sum: {$sum: '$j'}}}], + cursor: {} }); - assert.eq(4500, res.result[0].sum); + assert.eq(4500, res.cursor.firstBatch[0].sum); } else { print("Checking read operations, should fail"); assert.throws(function() { @@ -146,7 +147,8 @@ {mapreduce: 'foo', map: map, reduce: reduce, out: {inline: 1}}); checkCommandFailed(testDB, { aggregate: 'foo', - pipeline: [{$project: {j: 1}}, {$group: {_id: 'j', sum: {$sum: '$j'}}}] + pipeline: [{$project: {j: 1}}, {$group: {_id: 'j', sum: {$sum: '$j'}}}], + cursor: {} }); } }; |