Try to avoid MarkTest failing because of interference of different builds

This commit is contained in:
leventov
2015-01-25 17:42:03 +07:00
parent 893d918811
commit 62892f74c0
@@ -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 {