diff options
author | Scott Hernandez <scotthernandez@gmail.com> | 2015-09-22 11:40:43 -0400 |
---|---|---|
committer | Scott Hernandez <scotthernandez@gmail.com> | 2015-09-22 16:03:55 -0400 |
commit | ed51568a5d7351538248323324fdc63a26c60213 (patch) | |
tree | 6e36d2c9b290356eb7d7c7f61426995f2f19b01d /jstests/replsets/single_server_majority.js | |
parent | ae5617b20202aea3bd6cde64a1758f2d17e5b93a (diff) | |
download | mongo-ed51568a5d7351538248323324fdc63a26c60213.tar.gz |
cleanup replsets/single_server_majority.js test
Diffstat (limited to 'jstests/replsets/single_server_majority.js')
-rw-r--r-- | jstests/replsets/single_server_majority.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jstests/replsets/single_server_majority.js b/jstests/replsets/single_server_majority.js index c343436be0c..fa64177a181 100644 --- a/jstests/replsets/single_server_majority.js +++ b/jstests/replsets/single_server_majority.js @@ -1,11 +1,10 @@ // This test checks that w:"majority" works correctly on a lone mongod -// set up a mongod and connect a mongo +// set up a mongod and connect var mongod = MongoRunner.runMongod({}); -var mongo = startMongoProgram("mongo", "--port", mongod.port); // get db and collection, then preform a trivial insert -db = mongo.getDB("test") +db = mongod.getDB("test") col = db.getCollection("single_server_majority"); col.drop(); // see if we can get a majority write on this single server |