summaryrefslogtreecommitdiff
path: root/jstests/replsets/sized_zero_capped.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/sized_zero_capped.js')
-rw-r--r--jstests/replsets/sized_zero_capped.js40
1 files changed, 20 insertions, 20 deletions
diff --git a/jstests/replsets/sized_zero_capped.js b/jstests/replsets/sized_zero_capped.js
index 41debd6d17c..91aaacdda40 100644
--- a/jstests/replsets/sized_zero_capped.js
+++ b/jstests/replsets/sized_zero_capped.js
@@ -2,28 +2,28 @@
// SECONDARY to crash. (see SERVER-18792)
(function() {
- "use strict";
+"use strict";
- var name = "sized_zero_capped";
- 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}
- ]
- });
+var name = "sized_zero_capped";
+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}
+ ]
+});
- var testDB = replTest.getPrimary().getDB(name);
- testDB.createCollection(name, {capped: true, size: 0});
- replTest.awaitReplication();
+var testDB = replTest.getPrimary().getDB(name);
+testDB.createCollection(name, {capped: true, size: 0});
+replTest.awaitReplication();
- // ensure secondary is still up and responsive
- var secondary = replTest.getSecondary();
- assert.commandWorked(secondary.getDB(name).runCommand({ping: 1}));
+// ensure secondary is still up and responsive
+var secondary = replTest.getSecondary();
+assert.commandWorked(secondary.getDB(name).runCommand({ping: 1}));
- replTest.stopSet();
+replTest.stopSet();
}());