diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:17:50 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:18:14 -0500 |
commit | 4ae691e8edc87d0e3cfb633bb91c328426be007b (patch) | |
tree | 52079a593f54382ca13a2e741633eab1b6271893 /jstests/replsets/replsetarb2.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/replsets/replsetarb2.js')
-rw-r--r-- | jstests/replsets/replsetarb2.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/jstests/replsets/replsetarb2.js b/jstests/replsets/replsetarb2.js index 16388c8b92b..8e1712749e4 100644 --- a/jstests/replsets/replsetarb2.js +++ b/jstests/replsets/replsetarb2.js @@ -3,16 +3,18 @@ (function() { "use strict"; - var replTest = new ReplSetTest( {name: 'unicomplex', nodes: 3} ); + var replTest = new ReplSetTest({name: 'unicomplex', nodes: 3}); var nodes = replTest.nodeList(); var conns = replTest.startSet(); - var r = replTest.initiate({"_id" : "unicomplex", - "members" : [ - {"_id" : 0, "host" : nodes[0]}, - {"_id" : 1, "host" : nodes[1], "arbiterOnly" : true, "votes": 1}, - {"_id" : 2, "host" : nodes[2]} - ]}); + var r = replTest.initiate({ + "_id": "unicomplex", + "members": [ + {"_id": 0, "host": nodes[0]}, + {"_id": 1, "host": nodes[1], "arbiterOnly": true, "votes": 1}, + {"_id": 2, "host": nodes[2]} + ] + }); // Make sure we have a master var master = replTest.getPrimary(); @@ -24,7 +26,7 @@ return res.myState === 7; }, "Aribiter failed to initialize."); - var result = conns[1].getDB("admin").runCommand({isMaster : 1}); + var result = conns[1].getDB("admin").runCommand({isMaster: 1}); assert(result.arbiterOnly); assert(!result.passive); |