From ed51568a5d7351538248323324fdc63a26c60213 Mon Sep 17 00:00:00 2001 From: Scott Hernandez Date: Tue, 22 Sep 2015 11:40:43 -0400 Subject: cleanup replsets/single_server_majority.js test --- jstests/replsets/single_server_majority.js | 5 ++--- 1 file 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 -- cgit v1.2.1