summaryrefslogtreecommitdiff
path: root/jstests/replsets/replsethostnametrim.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/replsets/replsethostnametrim.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/replsets/replsethostnametrim.js')
-rw-r--r--jstests/replsets/replsethostnametrim.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/replsets/replsethostnametrim.js b/jstests/replsets/replsethostnametrim.js
index c303ecdea0d..51edf551f96 100644
--- a/jstests/replsets/replsethostnametrim.js
+++ b/jstests/replsets/replsethostnametrim.js
@@ -1,6 +1,6 @@
// try reconfiguring with space at the end of the host:port
-var replTest = new ReplSetTest({ name: 'testSet', nodes: 1 });
+var replTest = new ReplSetTest({name: 'testSet', nodes: 1});
var nodes = replTest.startSet();
replTest.initiate();
@@ -9,13 +9,13 @@ var config = master.getDB("local").system.replset.findOne();
config.version++;
var origHost = config.members[0].host;
config.members[0].host = origHost + " ";
-var result = master.adminCommand({replSetReconfig : config});
+var result = master.adminCommand({replSetReconfig: config});
assert.eq(result.ok, 1, tojson(result));
-//print("current (bad) config:"); printjson(config);
+// print("current (bad) config:"); printjson(config);
-//check new config to make sure it doesn't have a space in the hostname
+// check new config to make sure it doesn't have a space in the hostname
config = master.getDB("local").system.replset.findOne();
assert.eq(origHost, config.members[0].host);
-//print("current (good) config:"); printjson(config);
+// print("current (good) config:"); printjson(config);
replTest.stopSet(); \ No newline at end of file