Test for GH-2938
Close connection in `TcpNioConnection.testInsufficientThreads()`. Before the fix, this would block for 15 seconds, causing the assert on the future completion to fail.
This commit is contained in:
committed by
Artem Bilan
parent
796a0c43d2
commit
8ce16b99d2
@@ -334,6 +334,10 @@ public class TcpNioConnectionTests {
|
||||
logger.debug("Expected timeout", e);
|
||||
throw (Exception) e.getCause();
|
||||
}
|
||||
finally {
|
||||
connection.setPipeTimeout(15);
|
||||
connection.close();
|
||||
}
|
||||
return null;
|
||||
});
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user