summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/devnull.js
blob: 19c353cfba990beefe78cf886762163f0a446836 (plain)
1
2
3
4
5
6
7
8
var mongo = MongoRunner.runMongod({smallfiles: "", storageEngine: "devnull"});

db = mongo.getDB( "test" );

res = db.foo.insert( { x : 1 } );
assert.eq( 1, res.nInserted, tojson( res ) );

MongoRunner.stopMongod(mongo);