summaryrefslogtreecommitdiff
path: root/jstests/replsets/initiate.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/replsets/initiate.js')
-rw-r--r--jstests/replsets/initiate.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/jstests/replsets/initiate.js b/jstests/replsets/initiate.js
index 0afa0c85bcd..994cd3b73ea 100644
--- a/jstests/replsets/initiate.js
+++ b/jstests/replsets/initiate.js
@@ -3,22 +3,22 @@
* configs, so this is just seeing if it fails when it's supposed to.
*/
(function() {
- "use strict";
- var replTest = new ReplSetTest({name: 'testSet2', nodes: 1});
- var nodes = replTest.startSet();
+"use strict";
+var replTest = new ReplSetTest({name: 'testSet2', nodes: 1});
+var nodes = replTest.startSet();
- assert.soon(function() {
- try {
- var result = nodes[0].getDB("admin").runCommand(
- {replSetInitiate: {_id: "testSet2", members: [{_id: 0, tags: ["member0"]}]}});
- printjson(result);
- return (result.errmsg.match(/bad or missing host field/) ||
- result.errmsg.match(/Missing expected field \"host\"/));
- } catch (e) {
- print(e);
- }
- return false;
- });
+assert.soon(function() {
+ try {
+ var result = nodes[0].getDB("admin").runCommand(
+ {replSetInitiate: {_id: "testSet2", members: [{_id: 0, tags: ["member0"]}]}});
+ printjson(result);
+ return (result.errmsg.match(/bad or missing host field/) ||
+ result.errmsg.match(/Missing expected field \"host\"/));
+ } catch (e) {
+ print(e);
+ }
+ return false;
+});
- replTest.stopSet();
+replTest.stopSet();
}());