Skip to content

Commit 37e49a2

Browse files
committed
More TCP test polishing
- remove printStackTrace() - add queue depth to task executor
1 parent ebbcb9d commit 37e49a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public void testInsufficientThreads() throws Exception {
331331
}
332332
}
333333
catch (Exception e) {
334-
e.printStackTrace();
334+
logger.debug("Expected timeout", e);
335335
throw (Exception) e.getCause();
336336
}
337337
return null;
@@ -698,7 +698,7 @@ private CompositeExecutor compositeExecutor() {
698698
ThreadPoolTaskExecutor assemblerExec = new ThreadPoolTaskExecutor();
699699
assemblerExec.setCorePoolSize(2);
700700
assemblerExec.setMaxPoolSize(10);
701-
assemblerExec.setQueueCapacity(0);
701+
assemblerExec.setQueueCapacity(1000);
702702
assemblerExec.setThreadNamePrefix("assembler-");
703703
assemblerExec.setRejectedExecutionHandler(new AbortPolicy());
704704
assemblerExec.initialize();

0 commit comments

Comments
 (0)