Skip to content

Commit

Permalink
[POOL-419] Updated test params. I have found these settings to produc…
Browse files Browse the repository at this point in the history
…e consistent and reliable results.
  • Loading branch information
rajucomp committed Feb 3, 2025
1 parent 92e10a7 commit 0d850cf
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
import org.apache.commons.pool3.WaiterFactory;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.RepeatedTest;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.Timeout;

Expand Down Expand Up @@ -3173,18 +3174,19 @@ public PooledObject<Object> wrap(final Object obj) {
* Test for POOL-419.
* https://issues.apache.org/jira/browse/POOL-419
*/
@Test
@RepeatedTest(10)
@Timeout(value = 60000, unit = TimeUnit.MILLISECONDS)
void testPool419() throws Exception{

ExecutorService executor = Executors.newFixedThreadPool(100);

final GenericObjectPoolConfig<Object> config = new GenericObjectPoolConfig<>();

final int maxConnections = 10000;
final int maxConnections = 100000;

config.setMaxTotal(maxConnections);
config.setMaxIdle(maxConnections);
config.setMinIdle(1);
config.setMinIdle(maxConnections);

final BasePooledObjectFactory<Object, RuntimeException> pof = createPooledObjectFactory();

Expand Down

0 comments on commit 0d850cf

Please sign in to comment.