From 62892f74c0d7bcf94304ddad5cb2f1d1f4b1f613 Mon Sep 17 00:00:00 2001 From: leventov Date: Sun, 25 Jan 2015 17:19:15 +0700 Subject: [PATCH] Try to avoid MarkTest failing because of interference of different builds --- src/test/java/net/openhft/chronicle/map/MarkTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/net/openhft/chronicle/map/MarkTest.java b/src/test/java/net/openhft/chronicle/map/MarkTest.java index 504e5df69..03ef0b534 100644 --- a/src/test/java/net/openhft/chronicle/map/MarkTest.java +++ b/src/test/java/net/openhft/chronicle/map/MarkTest.java @@ -46,7 +46,8 @@ public class MarkTest { @Test(timeout = 25000) public void persistedTest() { - final File db = Paths.get(System.getProperty("java.io.tmpdir"), "mark").toFile(); + int rnd = new Random().nextInt(); + final File db = Paths.get(System.getProperty("java.io.tmpdir"), "mark" + rnd).toFile(); if (db.exists()) db.delete(); try {