mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Use random file names in tests of persisted maps to avoid inference
This commit is contained in:
@@ -36,7 +36,7 @@ public class ExitHookTest {
|
||||
public void testExitHook() throws IOException, InterruptedException {
|
||||
if (!OS.isLinux() && !OS.isMacOSX())
|
||||
return; // This test runs only in Unix-like OSes
|
||||
File mapFile = folder.newFile("map");
|
||||
File mapFile = folder.newFile();
|
||||
System.out.println("map file: " + mapFile.getAbsolutePath());
|
||||
// Create a process which opens the map, acquires the lock and "hangs" for 30 seconds
|
||||
Process process = startOtherProcess(mapFile);
|
||||
|
||||
@@ -108,7 +108,7 @@ public class MemoryResourcesTest {
|
||||
VanillaChronicleMap<IntValue, String, ?> map;
|
||||
if (persisted) {
|
||||
map = (VanillaChronicleMap<IntValue, String, ?>)
|
||||
builder.createPersistedTo(folder.newFile("map.dat"));
|
||||
builder.createPersistedTo(folder.newFile());
|
||||
} else {
|
||||
map = (VanillaChronicleMap<IntValue, String, ?>) builder.create();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user