summaryrefslogtreecommitdiff
path: root/jstests/ssl
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2013-01-18 17:36:24 -0500
committerEric Milkie <milkie@10gen.com>2013-01-18 17:44:35 -0500
commit6151edafad14a36f0f49ca5e592f5b81dac58949 (patch)
treef34442739c90d8b46708cafc3c46166e97e892bb /jstests/ssl
parentfc568e0067d08c682a39918e10ad465ff8c2d0ca (diff)
downloadmongo-6151edafad14a36f0f49ca5e592f5b81dac58949.tar.gz
fix ssl unit test on Windows
We can't shut down the server on Windows because it attempts to connect to the server and run shutdown, which it can't [yet] do if the server is listening for ssl connections (unimplemented).
Diffstat (limited to 'jstests/ssl')
-rw-r--r--jstests/ssl/ssl_cert_password.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/jstests/ssl/ssl_cert_password.js b/jstests/ssl/ssl_cert_password.js
index caff70514bc..f8b349de148 100644
--- a/jstests/ssl/ssl_cert_password.js
+++ b/jstests/ssl/ssl_cert_password.js
@@ -41,7 +41,8 @@ md = runMongoProgram("mongo", "--port", port,
assert(md==1);
-
-// Stop the server
-var exitCode = stopMongod(port, 15);
-assert(exitCode == 0);
+if (!_isWindows()) {
+ // Stop the server
+ var exitCode = stopMongod(port, 15);
+ assert(exitCode == 0);
+}