mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
OS.TARGET is now private and lazily initialized to avoid unnecessary file system access from the static initializer - fixes OpenHFT/Chronicle-Map#231
This commit is contained in:
@@ -28,7 +28,7 @@ import java.io.IOException;
|
||||
public class Issue125Test {
|
||||
@Test
|
||||
public void test() throws IOException {
|
||||
final File cacheRoot = new File(OS.TARGET + "/test.cm3");
|
||||
final File cacheRoot = new File(OS.getTarget() + "/test.cm3");
|
||||
ChronicleMapBuilder<byte[], byte[]> shaToNodeBuilder =
|
||||
ChronicleMapBuilder.of(byte[].class, byte[].class)
|
||||
// .name("bytes-to-bytes")
|
||||
|
||||
@@ -29,7 +29,7 @@ import static org.junit.Assert.assertEquals;
|
||||
public class ExternalizableTest {
|
||||
@Test
|
||||
public void externalizable() throws IOException {
|
||||
String path = OS.TARGET + "/test-" + System.nanoTime() + ".map";
|
||||
String path = OS.getTarget() + "/test-" + System.nanoTime() + ".map";
|
||||
new File(path).deleteOnExit();
|
||||
try (ChronicleMap<Long, SomeClass> storage = ChronicleMapBuilder
|
||||
.of(Long.class, SomeClass.class)
|
||||
|
||||
Reference in New Issue
Block a user