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/mmap_v1/dur_remove_old_journals.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/mmap_v1/dur_remove_old_journals.js')
-rw-r--r-- | jstests/mmap_v1/dur_remove_old_journals.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/mmap_v1/dur_remove_old_journals.js b/jstests/mmap_v1/dur_remove_old_journals.js index 59f50f9c359..56178af2cb6 100644 --- a/jstests/mmap_v1/dur_remove_old_journals.js +++ b/jstests/mmap_v1/dur_remove_old_journals.js @@ -10,7 +10,7 @@ else { PATH = MongoRunner.dataDir + "/dur_remove_old_journals"; SYNC_DELAY = 5; // must be a number - conn = startMongodEmpty("--port", 30001, "--dbpath", PATH, "--dur", "--smallfiles", "--syncdelay", ''+SYNC_DELAY); + var conn = MongoRunner.runMongod({dbpath: PATH, dur: "", smallfiles: "", syncdelay: SYNC_DELAY}); db = conn.getDB("test"); longString = 'x'; @@ -51,7 +51,7 @@ else { assert.eq(2, nfiles); // latest journal file and lsn - stopMongod(30001); + MongoRunner.stopMongod(conn); } print("*** success ***"); |