summaryrefslogtreecommitdiff
path: root/jstests/disk/repair5.js
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-03-22 12:08:21 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-04-06 18:19:21 -0400
commit6ccb82c987a47995fd7d8019d7fd4d1e557478b4 (patch)
tree2542816a69e9faaaff840754b42f0229dc905ccd /jstests/disk/repair5.js
parent7baac52f05a3e0cbdb7168e51836f507eda99dff (diff)
downloadmongo-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.js12
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);