File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
src/test/java/org/apache/commons/pool3/impl Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -196,17 +196,13 @@ void testCollectDetailedStatisticsDisabled() throws Exception {
196196 void testCollectDetailedStatisticsEnabled () throws Exception {
197197 // Ensure detailed statistics are enabled (default)
198198 pool .setCollectDetailedStatistics (true );
199-
200199 final DefaultPooledObject <String > pooledObject = (DefaultPooledObject <String >) factory .makeObject ();
201-
202200 // Update statistics
203201 pool .updateStatsBorrow (pooledObject , Duration .ofMillis (100 ));
204202 pool .updateStatsReturn (Duration .ofMillis (200 ));
205-
206203 // All counters should work
207204 assertEquals (1 , pool .getBorrowedCount ());
208205 assertEquals (1 , pool .getReturnedCount ());
209-
210206 // Detailed statistics should be updated
211207 assertEquals (200 , pool .getMeanActiveTimeMillis ());
212208 assertEquals (100 , pool .getMeanBorrowWaitTimeMillis ());
@@ -279,7 +275,6 @@ void testStatsStoreConcurrentAccess() throws Exception {
279275 assertTrue (pool .getMeanActiveTimeMillis () >= 0 );
280276 assertTrue (pool .getMeanBorrowWaitTimeMillis () >= 0 );
281277 assertTrue (pool .getMaxBorrowWaitTimeMillis () >= 0 );
282-
283278 executor .shutdown ();
284279 assertTrue (executor .awaitTermination (5 , TimeUnit .SECONDS ));
285280 }
You can’t perform that action at this time.
0 commit comments