diff --git a/spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/SimpleTcpNetOutboundGatewayTests.java b/spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/SimpleTcpNetOutboundGatewayTests.java index fce231bf93..48eb165958 100644 --- a/spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/SimpleTcpNetOutboundGatewayTests.java +++ b/spring-integration-ip/src/test/java/org/springframework/integration/ip/tcp/SimpleTcpNetOutboundGatewayTests.java @@ -158,7 +158,7 @@ public class SimpleTcpNetOutboundGatewayTests { Thread t = new Thread(new Runnable() { public void run() { try { - ServerSocket ss = ServerSocketFactory.getDefault().createServerSocket(port); + ServerSocket ss = ServerSocketFactory.getDefault().createServerSocket(port, 10); latch1.countDown(); while (true) { Socket s = ss.accept(); @@ -197,7 +197,7 @@ public class SimpleTcpNetOutboundGatewayTests { Thread t = new Thread(new Runnable() { public void run() { try { - ServerSocket ss = ServerSocketFactory.getDefault().createServerSocket(port); + ServerSocket ss = ServerSocketFactory.getDefault().createServerSocket(port, 10); latch1.countDown(); boolean first = true; while (true) {