This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-dbcp.git
The following commit(s) were added to refs/heads/master by this push:
new 1b510748 Update test to match InterruptedException guidelines
1b510748 is described below
commit 1b510748e70e3075328fe04f703f906015f72b19
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jan 28 06:57:46 2026 -0500
Update test to match InterruptedException guidelines
---
.../apache/commons/dbcp2/datasources/TestSharedPoolDataSource.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/test/java/org/apache/commons/dbcp2/datasources/TestSharedPoolDataSource.java
b/src/test/java/org/apache/commons/dbcp2/datasources/TestSharedPoolDataSource.java
index 0cde703e..06984d4f 100644
---
a/src/test/java/org/apache/commons/dbcp2/datasources/TestSharedPoolDataSource.java
+++
b/src/test/java/org/apache/commons/dbcp2/datasources/TestSharedPoolDataSource.java
@@ -442,8 +442,8 @@ public class TestSharedPoolDataSource extends
TestConnectionPool {
try {
t1.join();
t2.join();
- } catch (final InterruptedException ie) {
- // Ignore
+ } catch (final InterruptedException e) {
+ Thread.currentThread().interrupt();
}
}