Try to avoid MarkTest failing because of interference of different builds

This commit is contained in:
leventov
2015-01-26 09:42:07 +07:00
parent adf9b27494
commit 935c2422dd
@@ -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 {