From cf2068420f92f25985c22a6cdb16c17d9ceb1efb Mon Sep 17 00:00:00 2001
From: Valery Kharseko <vharseko@3a-systems.ru>
Date: Sat, 05 Sep 2026 18:16:09 +0000
Subject: [PATCH] [#878] Bound the JDBC connection pool and expire its connections one by one (#884)

---
 opendj-server-legacy/src/test/java/org/opends/server/backends/jdbc/TestCase.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opendj-server-legacy/src/test/java/org/opends/server/backends/jdbc/TestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/backends/jdbc/TestCase.java
index 3f2f14e..9cc4d97 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/backends/jdbc/TestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/backends/jdbc/TestCase.java
@@ -169,7 +169,7 @@
 			}
 
 			// a pooled connection would be handed back without being established again
-			CachedConnection.cached.invalidate(url);
+			CachedConnection.poolOf(url).drainIdle();
 			try (final Connection con = CachedConnection.getConnection(url)) {
 				assertEquals(con.getNetworkTimeout(), 0, "the read bound of the login is still in force");
 			}

--
Gitblit v1.10.0