Skip to content

Commit 98add54

Browse files
nhachichaCopilot
andauthored
Update driver-sync/src/test/functional/com/mongodb/client/ServerDiscoveryAndMonitoringProseTests.java
Co-authored-by: Copilot <[email protected]>
1 parent 4938439 commit 98add54

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

driver-sync/src/test/functional/com/mongodb/client/ServerDiscoveryAndMonitoringProseTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ public void testConnectionPoolBackpressure() throws InterruptedException {
295295
MongoDatabase database = client.getDatabase(getDefaultDatabaseName());
296296
MongoCollection<Document> collection = database.getCollection("testCollection");
297297

298-
adminDatabase.runCommand(new Document("setParameter", 1)
299-
.append("ingressConnectionEstablishmentRateLimiterEnabled", true));
300298
try {
299+
adminDatabase.runCommand(new Document("setParameter", 1)
300+
.append("ingressConnectionEstablishmentRateLimiterEnabled", true));
301301
adminDatabase.runCommand(new Document("setParameter", 1)
302302
.append("ingressConnectionEstablishmentRatePerSec", 20));
303303
adminDatabase.runCommand(new Document("setParameter", 1)

0 commit comments

Comments
 (0)