From 92d5a9d45e35b33c6099dba1403b27227222fefa Mon Sep 17 00:00:00 2001 From: Rob Austin Date: Fri, 21 Nov 2014 12:36:30 +0000 Subject: [PATCH] HCOLL-134 changed the default so that is does not autoReconnectedUponDroppedConnection, however its better if most of the test cases have this can you can guarantee that the server is ready to accept TCP/IP before the client. --- .../net/openhft/chronicle/map/ChannelReplicationTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/java/net/openhft/chronicle/map/ChannelReplicationTest.java b/src/test/java/net/openhft/chronicle/map/ChannelReplicationTest.java index 717e943d4..93cf012f0 100644 --- a/src/test/java/net/openhft/chronicle/map/ChannelReplicationTest.java +++ b/src/test/java/net/openhft/chronicle/map/ChannelReplicationTest.java @@ -55,7 +55,7 @@ public class ChannelReplicationTest { { TcpTransportAndNetworkConfig tcpConfig = TcpTransportAndNetworkConfig .of(8086, new InetSocketAddress("localhost", 8087)) - .heartBeatInterval(1, SECONDS); + .heartBeatInterval(1, SECONDS).autoReconnectedUponDroppedConnection(true); hubA = ReplicationHub.builder() .tcpTransportAndNetwork(tcpConfig) @@ -68,7 +68,8 @@ public class ChannelReplicationTest { { TcpTransportAndNetworkConfig tcpConfig = - TcpTransportAndNetworkConfig.of(8087).heartBeatInterval(1, SECONDS); + TcpTransportAndNetworkConfig.of(8087).heartBeatInterval(1, SECONDS) + .autoReconnectedUponDroppedConnection(true); hubB = ReplicationHub.builder().tcpTransportAndNetwork(tcpConfig) .createWithId((byte) 2);