Skip to content

Commit e4defd9

Browse files
committed
Close connection in `TcpNioConnection.testInsufficientThreads()`. Before the fix, this would block for 200 seconds, causing the assert on the future completion to fail.
1 parent 796a0c4 commit e4defd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/connection/TcpNioConnectionTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ public void testInsufficientThreads() throws Exception {
334334
logger.debug("Expected timeout", e);
335335
throw (Exception) e.getCause();
336336
}
337+
finally {
338+
connection.close();
339+
}
337340
return null;
338341
});
339342
try {

0 commit comments

Comments
 (0)