Reduce output; add timeout

This commit is contained in:
Dmitry Pisklov
2018-12-05 16:31:35 +00:00
parent a848f48d29
commit 8748900ac8
4 changed files with 14 additions and 14 deletions
@@ -39,7 +39,7 @@ public class Issue43Test {
.valueMarshaller(ArrayMarshaller.INSTANCE)
.constantValueSizeBySample(new ValueWrapper(new double[128]))
.createPersistedTo(Builder.getPersistenceFile());
System.out.println("Created the monkey map ValueWrapper 128");
//System.out.println("Created the monkey map ValueWrapper 128");
} catch (Throwable ex) {
System.out.println(ex);
}
@@ -35,11 +35,11 @@ public class Issue60Test {
.maxBloatFactor(maxBloatFactor)
.create()) {
System.out.println("begin test " + map.size());
//System.out.println("begin test " + map.size());
for (int i = 0; i < loop; i++) {
map.put("key" + i, "value" + i);
}
System.out.println("map size " + map.size());
//System.out.println("map size " + map.size());
int failedGet = 0;
for (int i = 0; i < loop; i++) {
@@ -49,8 +49,8 @@ public class Issue60Test {
}
}
Assert.assertEquals(0, failedGet);
System.out.println("failedGet " + failedGet);
System.out.println("map " + map);
//System.out.println("failedGet " + failedGet);
//System.out.println("map " + map);
}
}
}
@@ -210,7 +210,7 @@ public class Issue63Test {
Path knownItemsPath = Paths.get(persistToDir + "/I-known-items.dat");
System.err.println("Loading knownItems");
//System.err.println("Loading knownItems");
ArrayList<CharSequence> averageKnownItems = new ArrayList<>();
for (int i = 0; i < 100; i++) {
averageKnownItems.add("average sized known item");
@@ -230,7 +230,7 @@ public class Issue63Test {
knownItems = knownItemsBuilder.createPersistedTo(knownItemsPath.toFile());
}
System.err.println("Loading xVectors");
//System.err.println("Loading xVectors");
Path xVectorsPath = Paths.get(persistToDir + "/" + "X-vectors.dat");
ChronicleMapBuilder<CharSequence, float[]> xVectorsBuilder = ChronicleMap
.of(CharSequence.class, float[].class)
@@ -244,7 +244,7 @@ public class Issue63Test {
xVectors = xVectorsBuilder.createPersistedTo(xVectorsPath.toFile());
}
System.err.println("Loading xRecentIds");
//System.err.println("Loading xRecentIds");
Path xRecentIDsPath = Paths.get(persistToDir + "/" + "X-recent-ids.dat");
ChronicleSetBuilder<CharSequence> xRecentBuilder = ChronicleSet
.of(CharSequence.class)
@@ -256,7 +256,7 @@ public class Issue63Test {
xRecentIDs = xRecentBuilder.createPersistedTo(xRecentIDsPath.toFile());
}
System.err.println("Loading yVectors");
//System.err.println("Loading yVectors");
Path yVectorsPath = Paths.get(persistToDir + "/" + "Y-vectors.dat");
ChronicleMapBuilder<CharSequence, float[]> yVectorsBuilder = ChronicleMap
.of(CharSequence.class, float[].class)
@@ -270,7 +270,7 @@ public class Issue63Test {
yVectors = yVectorsBuilder.createPersistedTo(yVectorsPath.toFile());
}
System.err.println("Loading yRecentIDs");
//System.err.println("Loading yRecentIDs");
Path yRecentIDsPath = Paths.get(persistToDir + "/" + "Y-recent-ids.dat");
ChronicleSetBuilder<CharSequence> yRecentBuilder = ChronicleSet
.of(CharSequence.class)
@@ -344,9 +344,9 @@ public class Issue63Test {
/* ids.forEach((id) -> {
System.out.println(knownItems2.get(id.subSequence(0, id.length())));
});*/
knownItems2.forEach((id, list) -> {
System.out.println(id + " : " + String.join(",", list));
});
// knownItems2.forEach((id, list) -> {
// System.out.println(id + " : " + String.join(",", list));
// });
}
}
@@ -18,7 +18,7 @@ import java.util.Map;
*/
public class MissSizedMapsTest {
@Test
@Test(timeout = 60000)
public void testSmallEntries() throws IOException, URISyntaxException {
ChronicleMap<String, String> actual = ChronicleMapBuilder.of(String.class, String.class)
.averageKey("D-6.0149935894066442E18").averageValue("226|16533|4|1|1|testHarness").entries(150 << 10)