mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-184 stateless client now returns the server and client versions
This commit is contained in:
@@ -50,7 +50,7 @@ public class BuildVersionTest {
|
||||
.create()) {
|
||||
expected.put(1, 1.0);
|
||||
|
||||
String version = ((VanillaChronicleMap) expected).version();
|
||||
String version = ((VanillaChronicleMap) expected).persistedDataVersion();
|
||||
Assert.assertNotNull(BuildVersion.readVersion(), version);
|
||||
|
||||
}
|
||||
|
||||
@@ -690,7 +690,7 @@ public class StatelessClientTest {
|
||||
.class, StringBuilder.class)
|
||||
.statelessClient(new InetSocketAddress("localhost", port)).create()) {
|
||||
|
||||
assertTrue(!((StatelessChronicleMap) statelessMap).version().isEmpty());
|
||||
assertTrue(!((StatelessChronicleMap) statelessMap).serverApplicationVersion().isEmpty());
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ public class TestOversizedReplicationHub {
|
||||
byte identifier = (byte) 1;
|
||||
|
||||
TcpTransportAndNetworkConfig tcpConfig = TcpTransportAndNetworkConfig
|
||||
.of(8086, new InetSocketAddress("localhost", 8087))
|
||||
.of(8021, new InetSocketAddress("localhost", 8022))
|
||||
.heartBeatInterval(1, TimeUnit.SECONDS);
|
||||
|
||||
ReplicationHub hubOnServer1 = ReplicationHub.builder()
|
||||
@@ -74,7 +74,7 @@ public class TestOversizedReplicationHub {
|
||||
byte identifier = (byte) 2;
|
||||
|
||||
TcpTransportAndNetworkConfig tcpConfig = TcpTransportAndNetworkConfig
|
||||
.of(8087).heartBeatInterval(1, TimeUnit.SECONDS);
|
||||
.of(8022).heartBeatInterval(1, TimeUnit.SECONDS);
|
||||
|
||||
ReplicationHub hubOnServer2 = ReplicationHub.builder()
|
||||
.tcpTransportAndNetwork(tcpConfig)
|
||||
|
||||
Reference in New Issue
Block a user