diff options
Diffstat (limited to 'jstests/sharding/group_slaveok.js')
-rw-r--r-- | jstests/sharding/group_slaveok.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/sharding/group_slaveok.js b/jstests/sharding/group_slaveok.js index 3412e7da163..0c7175f8fed 100644 --- a/jstests/sharding/group_slaveok.js +++ b/jstests/sharding/group_slaveok.js @@ -42,13 +42,13 @@ conn.setSlaveOk(); // Should not throw exception, since slaveOk'd assert.eq(10, coll.group({ key: { i: true } , - reduce: function(obj, ctx) { ctx.count += 1 }, - initial: { count: 0 } }).length) + reduce: function(obj, ctx) { ctx.count += 1; }, + initial: { count: 0 } }).length); try { conn.setSlaveOk(false); var res = coll.group({ key: { i: true }, - reduce: function(obj, ctx) { ctx.count += 1 }, + reduce: function(obj, ctx) { ctx.count += 1; }, initial: { count: 0 } }); print("Should not reach here! Group result: " + tojson(res)); |