summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jstests/noPassthrough/connection_establishment_metrics.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/noPassthrough/connection_establishment_metrics.js b/jstests/noPassthrough/connection_establishment_metrics.js
index 5eed9e94259..de4fb9f68b8 100644
--- a/jstests/noPassthrough/connection_establishment_metrics.js
+++ b/jstests/noPassthrough/connection_establishment_metrics.js
@@ -73,6 +73,8 @@ let connDelayFailPoint = configureFailPoint(
st.s, 'transportLayerASIOdelayConnection', {millis: kConnectionEstablishmentDelayMillis});
assert.commandWorked(st.s.adminCommand(
{setParameter: 1, slowConnectionThresholdMillis: kConnectionEstablishmentDelayMillis}));
+assert.commandWorked(
+ st.s.adminCommand({dropConnections: 1, hostAndPort: [st.rs0.getPrimary().host]}));
jsTestLog("Running the query.");