diff options
author | Shreyas Kalyan <shreyas.kalyan@10gen.com> | 2020-03-26 19:56:49 -0700 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-27 17:50:36 +0000 |
commit | fb09428156a33be70d30452fb3bb91f73be94ee7 (patch) | |
tree | 4094f09f499244f663b7b1a6c33828e52e0f076d | |
parent | 37cc846c365b41f6ba238eb694008c4d3713f792 (diff) | |
download | mongo-fb09428156a33be70d30452fb3bb91f73be94ee7.tar.gz |
SERVER-47143 Fix ocsp_basic on Windows
-rw-r--r-- | jstests/ocsp/lib/ocsp_helpers.js | 35 |
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 |