mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-230 - split the buffers into a read buffer and a write buffer, add trace code for debugging ( which will be removed soon )
This commit is contained in:
@@ -237,7 +237,9 @@ public class StatelessClientTest {
|
||||
.class, CharSequence.class)
|
||||
.statelessClient(new InetSocketAddress("localhost", port)).create()) {
|
||||
assertEquals("EXAMPLE-10", statelessMap.get(10));
|
||||
assertEquals(1, statelessMap.size());
|
||||
|
||||
int size = statelessMap.size();
|
||||
assertEquals(1, size);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,11 +50,11 @@ public class TCPSocketReplicationBootStrapTest {
|
||||
@Test
|
||||
public void testBootstrap() throws IOException, InterruptedException {
|
||||
|
||||
map1 = newTcpSocketShmIntString((byte) 1, 8069);
|
||||
map1 = newTcpSocketShmIntString((byte) 1, 8091);
|
||||
|
||||
ChronicleMapBuilder<Integer, CharSequence> map2aBuilder =
|
||||
newTcpSocketShmBuilder(Integer.class, CharSequence.class,
|
||||
(byte) 2, 8066, new InetSocketAddress("localhost", 8069));
|
||||
(byte) 2, 8092, new InetSocketAddress("localhost", 8091));
|
||||
final ChronicleMap<Integer, CharSequence> map2a =
|
||||
map2aBuilder.createPersistedTo(getPersistenceFile());
|
||||
map2a.put(10, "EXAMPLE-10"); // this will be the last time that map1 go an update from map2
|
||||
|
||||
Reference in New Issue
Block a user