This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch POOL_2_X
in repository https://gitbox.apache.org/repos/asf/commons-pool.git

commit c33ac98606bfb6662c4c0f06272a827cdb43e9ec
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Jun 10 16:46:49 2025 -0400

    Use setter method in test
---
 .../java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java 
b/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
index 3f3e0d5b..7ebc8d7c 100644
--- 
a/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
+++ 
b/src/test/java/org/apache/commons/pool2/impl/TestGenericKeyedObjectPool.java
@@ -2108,7 +2108,7 @@ public class TestGenericKeyedObjectPool extends 
AbstractTestKeyedObjectPool {
     void testMaxWaitTimeOutOnTime() throws Exception {
         final Duration maxWaitDuration = Duration.ofSeconds(1);
         final SimpleFactory<String> factory = new SimpleFactory<>();
-        factory.makeLatency = 500;
+        factory.setMakeLatency(500);
         factory.setValidationEnabled(true); // turn on factory-level validation
         factory.setValid(false); // make validation fail uniformly
         try (GenericKeyedObjectPool<String, String> pool = new 
GenericKeyedObjectPool<>(factory)) {

Reply via email to