0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/noPassthrough/devnull.js
2014-11-27 19:52:29 -05:00

14 lines
356 B
JavaScript

port = 30201;
mongo = startMongodEmpty("--port", port,
"--dbpath", MongoRunner.dataPath + this.name,
"--smallfiles",
"--storageEngine", "devnull" );
db = mongo.getDB( "test" );
res = db.foo.insert( { x : 1 } );
assert.eq( 1, res.nInserted, tojson( res ) );
stopMongod( port );