HCOLL-134 changed the default so that is does not autoReconnectedUponDroppedConnection, however it 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 11:04:26 +00:00
parent a8479ee02f
commit ae26c293c7
12 changed files with 107 additions and 43 deletions
@@ -94,23 +94,25 @@ public class MapByNameTest {
final ReplicationHubFindByName<CharSequence> mapByName = nodeDiscovery.mapByName();
Thread.sleep(2000);
ChronicleMapBuilder<CharSequence, CharSequence> builder = ChronicleMapBuilder.of(CharSequence
ChronicleMapBuilder<CharSequence, CharSequence> builder = ChronicleMapBuilder.of(CharSequence
.class, CharSequence.class)
.minSegments(2)
.entries(2)
.name("myMap5")
.name("myMap6")
.removeReturnsNull(true);
ChronicleMap<String, String> map = mapByName.create(builder);
map.put("hello", "world");
ChronicleMap<String, String> map = mapByName.create(builder);
map.put("hello", "world");
// final ChronicleMap<CharSequence, CharSequence> map = mapByName.from("myMap5");
// final ChronicleMap<CharSequence, CharSequence> map = mapByName.from("myMap5");
// allow time for replication
Thread.sleep(2000);
System.out.print(map);
map.close();
}
}