summaryrefslogtreecommitdiff
path: root/jstests/libs/ssl_test.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/libs/ssl_test.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/libs/ssl_test.js')
-rw-r--r--jstests/libs/ssl_test.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/jstests/libs/ssl_test.js b/jstests/libs/ssl_test.js
index 59380776bf8..11874ebc01e 100644
--- a/jstests/libs/ssl_test.js
+++ b/jstests/libs/ssl_test.js
@@ -16,7 +16,6 @@
* "jstests/libs/ca.pem").
*/
function SSLTest(serverOpts, clientOpts) {
-
var canonicalServerOpts = function(userProvidedOpts) {
var canonical = Object.extend({}, userProvidedOpts || {});
@@ -51,14 +50,14 @@ SSLTest.prototype.defaultSSLClientOptions = {
"ssl": "",
"sslPEMKeyFile": "jstests/libs/client.pem",
"sslAllowInvalidCertificates": "",
- "eval": ";" // prevent the shell from entering interactive mode
+ "eval": ";" // prevent the shell from entering interactive mode
};
/**
* The default shell arguments for a shell without SSL enabled.
*/
SSLTest.prototype.noSSLClientOptions = {
- eval: ";" // prevent the shell from entering interactive mode
+ eval: ";" // prevent the shell from entering interactive mode
};
/**
@@ -75,8 +74,7 @@ SSLTest.prototype.connectWorked = function() {
var serverPID = _startMongoProgram.apply(null, serverArgv);
try {
assert.soon(function() {
- return checkProgram(serverPID) &&
- (0 === _runMongoProgram.apply(null, clientArgv));
+ return checkProgram(serverPID) && (0 === _runMongoProgram.apply(null, clientArgv));
}, "connect failed", connectTimeoutMillis);
} catch (ex) {
return false;