summaryrefslogtreecommitdiff
path: root/jstests/ssl
diff options
context:
space:
mode:
authorShreyas Kalyan <shreyas.kalyan@10gen.com>2020-03-13 10:34:44 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-17 02:38:42 +0000
commit7a94d2e51c709438aa2a65ac08955182ccb8c724 (patch)
treed612259636742ed1bd6549549f3ff31f80e3d516 /jstests/ssl
parent980acca9877377d9de08f82f6e36280085661805 (diff)
downloadmongo-7a94d2e51c709438aa2a65ac08955182ccb8c724.tar.gz
SERVER-45834 Turn off hang analyzer diagnostics for expected to fail replicaset initialization
Diffstat (limited to 'jstests/ssl')
-rw-r--r--jstests/ssl/initial_sync1_x509.js5
-rw-r--r--jstests/ssl/ssl_hostname_validation.js8
2 files changed, 13 insertions, 0 deletions
diff --git a/jstests/ssl/initial_sync1_x509.js b/jstests/ssl/initial_sync1_x509.js
index 554c6328ca5..10fa594927c 100644
--- a/jstests/ssl/initial_sync1_x509.js
+++ b/jstests/ssl/initial_sync1_x509.js
@@ -96,6 +96,11 @@ x509_options1 = Object.merge(common_options, {clusterAuthMode: "x509"});
x509_options2 = Object.merge(common_options,
{sslClusterFile: "jstests/libs/smoke.pem", clusterAuthMode: "x509"});
var replTest = new ReplSetTest({nodes: {node0: x509_options1, node1: x509_options2}});
+
+// We don't want to invoke the hang analyzer because we
+// expect this test to fail by timing out
+MongoRunner.runHangAnalyzer.disable();
+
var conns = replTest.startSet();
assert.throws(function() {
replTest.initiate();
diff --git a/jstests/ssl/ssl_hostname_validation.js b/jstests/ssl/ssl_hostname_validation.js
index 93ca98c522a..f62da13d669 100644
--- a/jstests/ssl/ssl_hostname_validation.js
+++ b/jstests/ssl/ssl_hostname_validation.js
@@ -87,12 +87,20 @@ ssl_options = {
};
replTest = new ReplSetTest({nodes: {node0: ssl_options, node1: ssl_options}});
+
+// We don't want to invoke the hang analyzer because we
+// expect this test to fail by timing out
+MongoRunner.runHangAnalyzer.disable();
+
replTest.startSet();
assert.throws(function() {
replTest.initiate();
});
replTest.stopSet();
+// Re-enable the hang analyzer for the test
+MongoRunner.runHangAnalyzer.enable();
+
TestData.skipCheckDBHashes = false;
// 3. Initiate ReplSetTest with invalid certs but set allowInvalidHostnames