mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
14 lines
356 B
JavaScript
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 );
|