ensure file location is unique - File file = new File(TMP + "/chronicle-map-" + System.currentTimeMillis() + (i++) + System.nanoTime() + ".json");

This commit is contained in:
Rob Austin
2015-02-02 23:02:33 +00:00
parent 915c81f0e7
commit 502d4c3656
@@ -181,7 +181,7 @@ public class CHMUseCasesTest {
private void checkJsonSerilization() {
File file = new File(TMP + "/chronicle-map-" + System.nanoTime() + ".json");
File file = new File(TMP + "/chronicle-map-" + System.currentTimeMillis() + (i++) + System.nanoTime() + ".json");
file.deleteOnExit();
try {
@@ -358,7 +358,7 @@ public class CHMUseCasesTest {
public void testByteArrayArrayValue() throws ExecutionException, InterruptedException, IOException {
for (int i=0; i < 10000; i++) {
for (int i = 0; i < 10000; i++) {
int valueSize = 10;
char[] expected = new char[valueSize];