Skip to content

Commit 61c53a8

Browse files
committed
- Revert spec timeout
- Fixing static check analysis
1 parent 4d836b1 commit 61c53a8

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
@@ -319,7 +319,7 @@ public void connectionPoolCleared(final ConnectionPoolClearedEvent event) {
319319
.append("ingressConnectionEstablishmentMaxQueueDepth", 1));
320320

321321
// Add a document to the collection
322-
collection.insertOne(Document.parse("{}"));// change
322+
collection.insertOne(Document.parse("{}"));
323323

324324
// Run 100 parallel find operations with 2-seconds sleep
325325
ExecutorService executor = Executors.newFixedThreadPool(100);
@@ -329,7 +329,7 @@ public void connectionPoolCleared(final ConnectionPoolClearedEvent event) {
329329

330330
// Wait for all operations to complete (max 10 seconds)
331331
executor.shutdown();
332-
boolean terminated = executor.awaitTermination(20, SECONDS);
332+
boolean terminated = executor.awaitTermination(10, SECONDS);
333333
assertTrue("Executor did not terminate within timeout", terminated);
334334

335335
// Assert at least 10 ConnectionCheckOutFailedEvents occurred

0 commit comments

Comments
 (0)