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/gle | |
parent | 7baac52f05a3e0cbdb7168e51836f507eda99dff (diff) | |
download | mongo-6ccb82c987a47995fd7d8019d7fd4d1e557478b4.tar.gz |
SERVER-17450 Standardize on a single way to start mongod in tests
Diffstat (limited to 'jstests/gle')
-rw-r--r-- | jstests/gle/get_last_error.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/jstests/gle/get_last_error.js b/jstests/gle/get_last_error.js index c97c6da0b56..2cd9836350e 100644 --- a/jstests/gle/get_last_error.js +++ b/jstests/gle/get_last_error.js @@ -89,7 +89,8 @@ replTest.stopSet(); // Need to start a single server manually to keep this test in the jstests/replsets test suite var port = allocatePorts(1)[0]; var baseName = "SERVER-9005"; -var mongod = startMongod("--port", port, "--dbpath", MongoRunner.dataPath + baseName); + +var mongod = MongoRunner.runMongod({port: port}); var sdb = new Mongo("localhost:"+port).getDB("test"); sdb.foo.drop(); @@ -112,4 +113,4 @@ printjson(gle); assert.eq(gle.ok, 0); assert(gle.badGLE); -stopMongod(port); +MongoRunner.stopMongod(mongod); |