changed to us File.createTempFile

Conflicts:
	src/test/java/net/openhft/chronicle/map/CHMUseCasesTest.java
This commit is contained in:
Rob Austin
2015-07-25 18:01:17 +03:00
committed by leventov
parent 2b954664fa
commit 0f246f7355
5 changed files with 80 additions and 18 deletions
@@ -47,8 +47,13 @@ public class PostChannelCreationTest {
private ReplicationHub hubB;
public static File getPersistenceFile() {
String TMP = System.getProperty("java.io.tmpdir");
File file = new File(TMP + "/test" + System.nanoTime());
File file = null;
try {
file = File.createTempFile("chm-test", "map");
} catch (IOException e) {
e.printStackTrace();
}
file.deleteOnExit();
return file;
}
@@ -107,7 +112,8 @@ public class PostChannelCreationTest {
}
/**
* sets up a 2 clusters ( notionally one for each host ), and replicates 2 Chronicle Maps between them
* sets up a 2 clusters ( notionally one for each host ), and replicates 2 Chronicle Maps
* between them
*
* @throws IOException
* @throws InterruptedException