diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2015-09-01 16:19:57 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2015-09-09 13:14:48 -0400 |
commit | c15f4bb96d2ee86874582d45d1865e9358168e7e (patch) | |
tree | 92c788863ae91a8b9c5801e1d536d7ef1a02ec05 /jstests/dur | |
parent | f5e063d4785b0460ab41de8cc4b537e5e2151338 (diff) | |
download | mongo-c15f4bb96d2ee86874582d45d1865e9358168e7e.tar.gz |
SERVER-18272 Update jstests to use allocatePort() instead of hard coding ports
Diffstat (limited to 'jstests/dur')
-rw-r--r-- | jstests/dur/checksum.js | 2 | ||||
-rw-r--r-- | jstests/dur/dropdb.js | 2 | ||||
-rw-r--r-- | jstests/dur/dur_jscore_passthrough.js | 3 |
3 files changed, 2 insertions, 5 deletions
diff --git a/jstests/dur/checksum.js b/jstests/dur/checksum.js index 2ee387261a8..ac932ab08fe 100644 --- a/jstests/dur/checksum.js +++ b/jstests/dur/checksum.js @@ -75,7 +75,7 @@ copyFile("jstests/libs/dur_checksum_bad_first.journal", path + "/journal/j._0"); copyFile("jstests/libs/dur_checksum_good.journal", path + "/journal/j._1"); exitCode = runMongoProgram("mongod", - "--port", 30001, + "--port", allocatePort(), "--dbpath", path, "--journal", "--smallfiles", diff --git a/jstests/dur/dropdb.js b/jstests/dur/dropdb.js index 56a4a3608f1..8c847c3a0aa 100644 --- a/jstests/dur/dropdb.js +++ b/jstests/dur/dropdb.js @@ -143,7 +143,7 @@ conn = MongoRunner.runMongod({restart: true, log("verify after recovery"); verify(); -log("stop mongod 30002"); +log("stop mongod"); MongoRunner.stopMongod(conn); sleep(5000); diff --git a/jstests/dur/dur_jscore_passthrough.js b/jstests/dur/dur_jscore_passthrough.js index 99a2ea7fb89..354cb76a132 100644 --- a/jstests/dur/dur_jscore_passthrough.js +++ b/jstests/dur/dur_jscore_passthrough.js @@ -2,9 +2,6 @@ // simple runner to run toplevel tests in jstests // -//TODO(mathias) add --master or make another test -//conn = startMongodEmpty("--port", 30200, "--dbpath", MongoRunner.dataDir + "/dur_passthrough", "--dur", "--smallfiles", "--durOptions", "24"); - var conn = MongoRunner.runMongod({journal: "", nopreallocj: "", smallfiles: "", journalOptions: 8}); db = conn.getDB("test"); conn.forceWriteMode("commands"); |