diff options
Diffstat (limited to 'jstests/noPassthroughWithMongod/sharding_rs_arb1.js')
-rw-r--r-- | jstests/noPassthroughWithMongod/sharding_rs_arb1.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/jstests/noPassthroughWithMongod/sharding_rs_arb1.js b/jstests/noPassthroughWithMongod/sharding_rs_arb1.js index 0e51180b44d..7096b31ad0f 100644 --- a/jstests/noPassthroughWithMongod/sharding_rs_arb1.js +++ b/jstests/noPassthroughWithMongod/sharding_rs_arb1.js @@ -17,9 +17,9 @@ master = replTest.getMaster(); db = master.getDB( "test" ); printjson( rs.status() ); -var config = startMongodEmpty("--configsvr", "--port", 29999, "--dbpath", MongoRunner.dataPath + name + "_config" ); +var config = MongoRunner.runMongod({configsvr: ""}); -var mongos = startMongos({ port : 30000, configdb : getHostName() + ":29999" }) +var mongos = MongoRunner.runMongos({configdb : getHostName() + ":" + config.port }); var admin = mongos.getDB("admin") var url = name + "/"; for ( i=0; i<port.length; i++ ) { @@ -33,8 +33,7 @@ printjson( res ) assert( res.ok , tojson(res) ) - -stopMongod( 30000 ) -stopMongod( 29999 ) +MongoRunner.stopMongos(mongos); +MongoRunner.stopMongod(config); replTest.stopSet(); |