diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod/find_cmd.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/find_cmd.js | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/jstests/noPassthroughWithMongod/find_cmd.js b/jstests/noPassthroughWithMongod/find_cmd.js index 7ce8e52855d..991e4b327d3 100644 --- a/jstests/noPassthroughWithMongod/find_cmd.js +++ b/jstests/noPassthroughWithMongod/find_cmd.js @@ -21,16 +21,13 @@ assert.eq(0, res.cursor.id); assert.eq([], res.cursor.firstBatch); // Ensure find command keeps cursor open if tailing a capped collection. -// Skip the test with mobile storage engine as it doesn't support capped collections. -if (jsTest.options().storageEngine !== "mobile") { - coll.drop(); - assert.commandWorked(coll.getDB().createCollection(collname, {capped: true, size: 2048})); - assert.commandWorked(coll.insert({_id: 1})); - res = coll.runCommand("find", {tailable: true}); - assert.commandWorked(res); - assert.neq(0, res.cursor.id); - assert.eq([{_id: 1}], res.cursor.firstBatch); -} +coll.drop(); +assert.commandWorked(coll.getDB().createCollection(collname, {capped: true, size: 2048})); +assert.commandWorked(coll.insert({_id: 1})); +res = coll.runCommand("find", {tailable: true}); +assert.commandWorked(res); +assert.neq(0, res.cursor.id); +assert.eq([{_id: 1}], res.cursor.firstBatch); // Multiple batches. coll.drop(); |