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:
Gary Russell
2019-05-28 15:58:20 -04:00
committed by Artem Bilan
parent 796a0c43d2
commit 8ce16b99d2

View File

@@ -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 {