Skip to content

Commit 1b51074

Browse files
committed
Update test to match InterruptedException guidelines
1 parent 0a2adaa commit 1b51074

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/dbcp2/datasources/TestSharedPoolDataSource.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,8 @@ void testDbcp369() {
442442
try {
443443
t1.join();
444444
t2.join();
445-
} catch (final InterruptedException ie) {
446-
// Ignore
445+
} catch (final InterruptedException e) {
446+
Thread.currentThread().interrupt();
447447
}
448448
}
449449

0 commit comments

Comments
 (0)