diff options
Diffstat (limited to 'jstests/core/evalg.js')
-rw-r--r-- | jstests/core/evalg.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/jstests/core/evalg.js b/jstests/core/evalg.js index 280e5261ef9..570464cbce2 100644 --- a/jstests/core/evalg.js +++ b/jstests/core/evalg.js @@ -1,11 +1,12 @@ // SERVER-17499: Test behavior of getMore on aggregation cursor under eval command. db.evalg.drop(); -for (var i = 0; i < 102; ++i){ +for (var i = 0; i < 102; ++i) { db.evalg.insert({}); } -assert.eq(102, db.eval(function() { - var cursor = db.evalg.aggregate(); - assert(cursor.hasNext()); - assert.eq(101, cursor.objsLeftInBatch()); - return cursor.itcount(); -})); +assert.eq(102, + db.eval(function() { + var cursor = db.evalg.aggregate(); + assert(cursor.hasNext()); + assert.eq(101, cursor.objsLeftInBatch()); + return cursor.itcount(); + })); |