More TCP test polishing

- remove printStackTrace()
- add queue depth to task executor
This commit is contained in:
Gary Russell
2019-05-01 14:42:51 -04:00
parent ebbcb9df48
commit 37e49a23f4

View File

@@ -331,7 +331,7 @@ public class TcpNioConnectionTests {
}
}
catch (Exception e) {
e.printStackTrace();
logger.debug("Expected timeout", e);
throw (Exception) e.getCause();
}
return null;
@@ -698,7 +698,7 @@ public class TcpNioConnectionTests {
ThreadPoolTaskExecutor assemblerExec = new ThreadPoolTaskExecutor();
assemblerExec.setCorePoolSize(2);
assemblerExec.setMaxPoolSize(10);
assemblerExec.setQueueCapacity(0);
assemblerExec.setQueueCapacity(1000);
assemblerExec.setThreadNamePrefix("assembler-");
assemblerExec.setRejectedExecutionHandler(new AbortPolicy());
assemblerExec.initialize();