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/replsets/single_server_majority.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/replsets/single_server_majority.js')
-rw-r--r-- | jstests/replsets/single_server_majority.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/replsets/single_server_majority.js b/jstests/replsets/single_server_majority.js index 136b1213001..c343436be0c 100644 --- a/jstests/replsets/single_server_majority.js +++ b/jstests/replsets/single_server_majority.js @@ -1,10 +1,8 @@ // This test checks that w:"majority" works correctly on a lone mongod // set up a mongod and connect a mongo -port = allocatePorts(1)[0]; -var baseName = "single_server_majority"; -var mongod = startMongod("--port", port, "--dbpath", MongoRunner.dataPath + baseName, "-v"); -var mongo = startMongoProgram("mongo", "--port", port); +var mongod = MongoRunner.runMongod({}); +var mongo = startMongoProgram("mongo", "--port", mongod.port); // get db and collection, then preform a trivial insert db = mongo.getDB("test") |