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/repair2.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/repair2.js')
-rw-r--r-- | jstests/disk/repair2.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/disk/repair2.js b/jstests/disk/repair2.js index f794653d144..a582d06a0ec 100644 --- a/jstests/disk/repair2.js +++ b/jstests/disk/repair2.js @@ -41,14 +41,14 @@ for( f in files ) { assert( fileCount > 0, "Expected more than zero nondirectory files in the database directory" ); check(); -stopMongod( port ); +MongoRunner.stopMongod( port ); resetDbpath( repairpath ); m = startMongoProgram( "mongod", "--directoryperdb", "--port", port, "--dbpath", dbpath, "--nohttpinterface", "--bind_ip", "127.0.0.1" ); db = m.getDB( baseName ); assert.commandWorked( db.runCommand( {repairDatabase:1} ) ); check(); -stopMongod( port ); +MongoRunner.stopMongod( port ); //Test long database names resetDbpath( repairpath ); @@ -56,7 +56,7 @@ m = startMongoProgram( "mongod", "--directoryperdb", "--port", port, "--dbpath", db = m.getDB( longDBName ); assert.writeOK(db[ baseName ].save( {} )); assert.commandWorked( db.runCommand( {repairDatabase:1} ) ); -stopMongod( port ); +MongoRunner.stopMongod( port ); //Test long repairPath resetDbpath( longRepairPath ) @@ -64,7 +64,7 @@ m = startMongoProgram( "mongod", "--directoryperdb", "--port", port, "--dbpath", db = m.getDB( longDBName ); assert.commandWorked( db.runCommand( {repairDatabase:1, backupOriginalFiles: true} ) ); check(); -stopMongod( port ); +MongoRunner.stopMongod( port ); //Test database name and repairPath with --repair resetDbpath( longRepairPath ) @@ -72,14 +72,14 @@ m = startMongoProgram( "mongod", "--repair", "--directoryperdb", "--port", port, m = startMongoProgram( "mongod", "--directoryperdb", "--port", port, "--dbpath", dbpath, "--nohttpinterface", "--bind_ip", "127.0.0.1" ); db = m.getDB( longDBName ); check(); -stopMongod( port ); +MongoRunner.stopMongod( port ); resetDbpath( repairpath ); runMongoProgram( "mongod", "--repair", "--directoryperdb", "--port", port, "--dbpath", dbpath, "--repairpath", repairpath, "--nohttpinterface", "--bind_ip", "127.0.0.1" ); m = startMongoProgram( "mongod", "--directoryperdb", "--port", port, "--dbpath", dbpath, "--repairpath", repairpath, "--nohttpinterface", "--bind_ip", "127.0.0.1" ); db = m.getDB( baseName ); check(); -stopMongod( port ); +MongoRunner.stopMongod( port ); resetDbpath( repairpath ); runMongoProgram( "mongod", "--repair", "--directoryperdb", "--port", port, "--dbpath", dbpath, "--nohttpinterface", "--bind_ip", "127.0.0.1" ); |