HCOLL-360 Small fixes

This commit is contained in:
leventov
2015-09-17 23:37:40 +03:00
parent 2eed65e80e
commit 50662c521b
5 changed files with 31 additions and 17 deletions
@@ -108,7 +108,7 @@ public class EntryCountMapTest {
System.out.printf(" Score: %.2f%n", scoreCount / score);
}
@Test(timeout = 1000 * 60)
@Test
public void testSmall() throws IOException, ExecutionException, InterruptedException {
System.out.print("testSmall seeds");
int procs = Runtime.getRuntime().availableProcessors();
@@ -39,6 +39,9 @@ public class Issue24ChronicleSetTest {
String tmp = System.getProperty("java.io.tmpdir");
String pathname = tmp + "/" + fileName;
File file = new File(pathname);
if (file.exists())
file.delete();
file.deleteOnExit();
try {
H result = builder.entries(entrySize)
.averageKeySize(averageKeySize).createPersistedTo(file);
@@ -53,7 +56,7 @@ public class Issue24ChronicleSetTest {
return init(ChronicleSetBuilder.of(entryClass), entrySize, averageKeySize, fileName);
}
@Test(timeout = 1000 * 60)
@Test
public void issue24ChronicleSetTest() {
ChronicleSet<String> set = initSet(String.class, 1_000_000, 30, "stringSet.dat");
ExecutorService executor = Executors.newFixedThreadPool(5);