fix broken unit test on windows - map builder requires keysize

This commit is contained in:
Tom Shercliff
2018-07-10 09:57:15 +01:00
parent 5590bf16de
commit ad40e7c40f
@@ -60,7 +60,7 @@ public class MemoryLeaksTest {
this.persisted = persisted;
this.closeWithinContext = closeWithinContext;
builder = ChronicleMap
.of(IntValue.class, String.class)
.of(IntValue.class, String.class).constantKeySizeBySample(Values.newHeapInstance(IntValue.class))
.valueReaderAndDataAccess(new CountedStringReader(), new StringUtf8DataAccess());
if (replicated)
builder.replication((byte) 1);