summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/devnull.js
blob: 2244875efc97e196b67e8c6f3046cd747f8842b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(function() {
var mongo = MongoRunner.runMongod({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);
}());