diff options
Diffstat (limited to 'jstests/replsets/sized_zero_capped.js')
-rw-r--r-- | jstests/replsets/sized_zero_capped.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/jstests/replsets/sized_zero_capped.js b/jstests/replsets/sized_zero_capped.js index 149cbaaf1af..41debd6d17c 100644 --- a/jstests/replsets/sized_zero_capped.js +++ b/jstests/replsets/sized_zero_capped.js @@ -8,12 +8,14 @@ var replTest = new ReplSetTest({name: name, nodes: 3}); var nodes = replTest.nodeList(); replTest.startSet(); - replTest.initiate({"_id": name, - "members": [ - { "_id": 0, "host": nodes[0], priority: 3 }, - { "_id": 1, "host": nodes[1], priority: 0 }, - { "_id": 2, "host": nodes[2], priority: 0 }] - }); + replTest.initiate({ + "_id": name, + "members": [ + {"_id": 0, "host": nodes[0], priority: 3}, + {"_id": 1, "host": nodes[1], priority: 0}, + {"_id": 2, "host": nodes[2], priority: 0} + ] + }); var testDB = replTest.getPrimary().getDB(name); testDB.createCollection(name, {capped: true, size: 0}); @@ -21,7 +23,7 @@ // ensure secondary is still up and responsive var secondary = replTest.getSecondary(); - assert.commandWorked(secondary.getDB(name).runCommand({ping:1 })); + assert.commandWorked(secondary.getDB(name).runCommand({ping: 1})); replTest.stopSet(); }()); |