0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-25 09:19:32 +01:00
mongodb/jstests/noPassthrough/devnull.js

14 lines
384 B
JavaScript

(function() {
var mongo = MongoRunner.runMongod({smallfiles: "", storageEngine: "devnull"});
db = mongo.getDB("test");
res = db.foo.insert({x: 1});
assert.eq(1, res.nInserted, tojson(res));
// Skip collection validation during stopMongod if invalid storage engine.
TestData.skipCollectionAndIndexValidation = true;
MongoRunner.stopMongod(mongo);
}());