summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/ocsp/lib/ocsp_helpers.js35
1 files changed, 20 insertions, 15 deletions
diff --git a/jstests/ocsp/lib/ocsp_helpers.js b/jstests/ocsp/lib/ocsp_helpers.js
index 01d51d57ed7..b5aa320518f 100644
--- a/jstests/ocsp/lib/ocsp_helpers.js
+++ b/jstests/ocsp/lib/ocsp_helpers.js
@@ -27,20 +27,25 @@ var clearOCSPCache = function() {
var waitForServer = function(conn) {
const host = "localhost:" + conn.port;
+ const provider = determineSSLProvider();
- assert.soon(() => {
- return 0 ===
- runMongoProgram('./mongo',
- '--host',
- host,
- '--tls',
- '--tlsCAFile',
- OCSP_CA_CERT,
- '--tlsCertificateKeyFile',
- OCSP_CLIENT_CERT,
- '--tlsAllowInvalidCertificates',
- '--tlsAllowInvalidHostnames',
- '--eval',
- '";"');
- });
+ if (provider !== "windows") {
+ assert.soon(() => {
+ return 0 ===
+ runMongoProgram('./mongo',
+ '--host',
+ host,
+ '--tls',
+ '--tlsCAFile',
+ OCSP_CA_CERT,
+ '--tlsCertificateKeyFile',
+ OCSP_CLIENT_CERT,
+ '--tlsAllowInvalidCertificates',
+ '--tlsAllowInvalidHostnames',
+ '--eval',
+ '";"');
+ });
+ } else {
+ sleep(15000);
+ }
}; \ No newline at end of file