summaryrefslogtreecommitdiff
path: root/jstests/mmap_v1
diff options
context:
space:
mode:
authorSpencer T Brody <spencer@mongodb.com>2015-03-22 12:08:21 -0400
committerSpencer T Brody <spencer@mongodb.com>2015-04-06 18:19:21 -0400
commit6ccb82c987a47995fd7d8019d7fd4d1e557478b4 (patch)
tree2542816a69e9faaaff840754b42f0229dc905ccd /jstests/mmap_v1
parent7baac52f05a3e0cbdb7168e51836f507eda99dff (diff)
downloadmongo-6ccb82c987a47995fd7d8019d7fd4d1e557478b4.tar.gz
SERVER-17450 Standardize on a single way to start mongod in tests
Diffstat (limited to 'jstests/mmap_v1')
-rw-r--r--jstests/mmap_v1/dur_big_atomic_update.js6
-rw-r--r--jstests/mmap_v1/dur_remove_old_journals.js4
2 files changed, 4 insertions, 6 deletions
diff --git a/jstests/mmap_v1/dur_big_atomic_update.js b/jstests/mmap_v1/dur_big_atomic_update.js
index 04531a75fd1..33cd88e22b2 100644
--- a/jstests/mmap_v1/dur_big_atomic_update.js
+++ b/jstests/mmap_v1/dur_big_atomic_update.js
@@ -2,9 +2,7 @@
//
// this tests writing 1GB in an atomic update to make sure we commit periodically
-var path = MongoRunner.dataDir + "/dur_big_atomic_update";
-
-conn = startMongodEmpty("--port", 30001, "--dbpath", path, "--dur", "--durOptions", 8);
+var conn = MongoRunner.runMongod({dur: "", durOptions: 8});
d = conn.getDB("test");
d.foo.drop();
@@ -49,6 +47,6 @@ assert(err.n == 1024);
// free up space
d.dropDatabase();
-stopMongod(30001);
+MongoRunner.stopMongod(conn);
print("dur big atomic update SUCCESS");
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 ***");