summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShreyas Kalyan <shreyas.kalyan@10gen.com>2021-03-23 13:09:19 -0700
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-25 17:27:21 +0000
commit6d5e2442e3ae0604d65310e34b7a66a6a060f1ac (patch)
tree394b302719eb4434ca4af31889271e9bcbbefe03
parent75d3a439ea77e6f8bd9bed2b4f397803b66c2949 (diff)
downloadmongo-6d5e2442e3ae0604d65310e34b7a66a6a060f1ac.tar.gz
SERVER-55332 Fix race condition in OCSP sharding test
-rw-r--r--jstests/ocsp/ocsp_sharding_basic.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/jstests/ocsp/ocsp_sharding_basic.js b/jstests/ocsp/ocsp_sharding_basic.js
index 39bb9e1945d..f8b6ed2523e 100644
--- a/jstests/ocsp/ocsp_sharding_basic.js
+++ b/jstests/ocsp/ocsp_sharding_basic.js
@@ -48,19 +48,22 @@ clearOCSPCache();
test();
-mock_ocsp.stop();
-
// We don't want to invoke the hang analyzer because we
// expect this test to fail by timing out
MongoRunner.runHangAnalyzer.disable();
clearOCSPCache();
+// Leave the OCSP responder on so that the other nodes all have valid responses.
var st = new ShardingTest(sharding_config);
+mock_ocsp.stop();
mock_ocsp = new MockOCSPServer(FAULT_REVOKED, 1);
mock_ocsp.start();
+clearOCSPCache();
+sleep(2000);
+
const err = assert.throws(() => {
st.restartMongos(0);
});