From fb09428156a33be70d30452fb3bb91f73be94ee7 Mon Sep 17 00:00:00 2001 From: Shreyas Kalyan Date: Thu, 26 Mar 2020 19:56:49 -0700 Subject: SERVER-47143 Fix ocsp_basic on Windows --- jstests/ocsp/lib/ocsp_helpers.js | 35 ++++++++++++++++++++--------------- 1 file 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 -- cgit v1.2.1