diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod/query_oplogreplay.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/query_oplogreplay.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/jstests/noPassthroughWithMongod/query_oplogreplay.js b/jstests/noPassthroughWithMongod/query_oplogreplay.js index fc2760577bc..7d4e632f431 100644 --- a/jstests/noPassthroughWithMongod/query_oplogreplay.js +++ b/jstests/noPassthroughWithMongod/query_oplogreplay.js @@ -2,7 +2,7 @@ function test(t) { t.drop(); - assert.commandWorked(t.getDB().createCollection(t.getName(), {capped: true, size: 16*1024})); + assert.commandWorked(t.getDB().createCollection(t.getName(), {capped: true, size: 16 * 1024})); function makeTS(i) { return Timestamp(1000, i); @@ -23,11 +23,13 @@ function test(t) { // 'ts' field is not top-level. assert.throws(function() { t.find({$or: [{ts: {$gt: makeTS(3)}}, {foo: 3}]}) - .addOption(DBQuery.Option.oplogReplay).next(); + .addOption(DBQuery.Option.oplogReplay) + .next(); }); assert.throws(function() { t.find({$nor: [{ts: {$gt: makeTS(4)}}, {foo: 4}]}) - .addOption(DBQuery.Option.oplogReplay).next(); + .addOption(DBQuery.Option.oplogReplay) + .next(); }); // Predicate over 'ts' is not $gt or $gte. @@ -61,5 +63,5 @@ var coll = db.jstests_query_oplogreplay; coll.drop(); assert.commandWorked(coll.getDB().createCollection(coll.getName())); var res = assert.throws(function() { - coll.find({ts: {$gt: "abcd"}}).addOption(DBQuery.Option.oplogReplay).next(); - }); + coll.find({ts: {$gt: "abcd"}}).addOption(DBQuery.Option.oplogReplay).next(); +}); |