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.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/jstests/replsets/initiate.js b/jstests/replsets/initiate.js
index 41d53202f80..0afa0c85bcd 100644
--- a/jstests/replsets/initiate.js
+++ b/jstests/replsets/initiate.js
@@ -2,20 +2,19 @@
* Sanity check that initializing will fail with bad input. There are C++ unit tests for most bad
* configs, so this is just seeing if it fails when it's supposed to.
*/
-(function () {
+(function() {
"use strict";
- var replTest = new ReplSetTest({name : 'testSet2', nodes : 1});
+ 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"]}]}});
+ {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) {
+ } catch (e) {
print(e);
}
return false;