diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-03-22 12:08:21 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-04-06 18:19:21 -0400 |
commit | 6ccb82c987a47995fd7d8019d7fd4d1e557478b4 (patch) | |
tree | 2542816a69e9faaaff840754b42f0229dc905ccd /jstests/disk/repair5.js | |
parent | 7baac52f05a3e0cbdb7168e51836f507eda99dff (diff) | |
download | mongo-6ccb82c987a47995fd7d8019d7fd4d1e557478b4.tar.gz |
SERVER-17450 Standardize on a single way to start mongod in tests
Diffstat (limited to 'jstests/disk/repair5.js')
-rw-r--r-- | jstests/disk/repair5.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/disk/repair5.js b/jstests/disk/repair5.js index b8dedb3ccf4..cef20dba0f3 100644 --- a/jstests/disk/repair5.js +++ b/jstests/disk/repair5.js @@ -2,17 +2,17 @@ var baseName = "jstests_disk_repair5"; -port = allocatePorts( 1 )[ 0 ]; dbpath = MongoRunner.dataPath + baseName + "/"; repairpath = dbpath + "repairDir/" resetDbpath( dbpath ); resetDbpath( repairpath ); -m = startMongodTest(port, - baseName + "/", - true, - {repairpath : repairpath, nohttpinterface : "", bind_ip : "127.0.0.1"}); +m = MongoRunner.runMongod({dbpath: dbpath, + repairpath: repairpath, + restart:true, + cleanData: false, // Don't clean data so repair dir doesn't get removed + bind_ip: "127.0.0.1"}); db = m.getDB( baseName ); @@ -48,4 +48,4 @@ s(); assert.eq( 20000, db[ baseName ].find().itcount() ); assert( db[ baseName ].validate().valid ); -stopMongod( port ) +MongoRunner.stopMongod(m); |