mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
removing the ecm-chm-test files
This commit is contained in:
@@ -192,15 +192,22 @@ public class EntryCountMapTest {
|
||||
final int stride = 1 + random.nextInt(100);
|
||||
int maxKeySize = "key:".length() +
|
||||
(int) round(log10(moreThanMaxSize(maxSize) * stride + counter)) + 1;
|
||||
final ChronicleMap<CharSequence, LongValue> map =
|
||||
getSharedMap(minSize, segments, maxKeySize);
|
||||
return es.submit(new Callable<Void>() {
|
||||
@Override
|
||||
public Void call() throws Exception {
|
||||
testEntriesMaxSize0(segments, minSize, maxSize, seed, stride, map);
|
||||
return null;
|
||||
}
|
||||
});
|
||||
|
||||
File f = null;
|
||||
try ( final ChronicleMap<CharSequence, LongValue> map =
|
||||
getSharedMap(minSize, segments, maxKeySize)) {
|
||||
f = map.file();
|
||||
return es.submit(new Callable<Void>() {
|
||||
@Override
|
||||
public Void call() throws Exception {
|
||||
testEntriesMaxSize0(segments, minSize, maxSize, seed, stride, map);
|
||||
return null;
|
||||
}
|
||||
});
|
||||
} finally {
|
||||
if (f != null && f.exists())
|
||||
f.delete();
|
||||
}
|
||||
}
|
||||
|
||||
void testEntriesMaxSize(int segments, int minSize, int maxSize, int seed) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user