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.

This commit is contained in:
Rob Austin
2014-11-21 12:36:30 +00:00
parent ae26c293c7
commit 92d5a9d45e
@@ -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);