From 935c2422dd33713ad3a33704e3f471c15a31fedd 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 14e901e01..6d2ca96f9 100644 --- a/src/test/java/net/openhft/chronicle/map/MarkTest.java +++ b/src/test/java/net/openhft/chronicle/map/MarkTest.java @@ -45,7 +45,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 {