From e1362d4f03b483d515d3cf86fc29d1c91285df1e Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 1 Oct 2009 12:13:18 +0000 Subject: [PATCH] fix TestAtomicUpdate to use random dir in filesystem to avoid conflict if two are running at once git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@820623 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/org/apache/lucene/index/TestAtomicUpdate.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/org/apache/lucene/index/TestAtomicUpdate.java b/src/test/org/apache/lucene/index/TestAtomicUpdate.java index f23289a66d6..ba060875038 100644 --- a/src/test/org/apache/lucene/index/TestAtomicUpdate.java +++ b/src/test/org/apache/lucene/index/TestAtomicUpdate.java @@ -188,8 +188,7 @@ public class TestAtomicUpdate extends LuceneTestCase { directory.close(); // Second in an FSDirectory: - String tempDir = System.getProperty("java.io.tmpdir"); - File dirPath = new File(tempDir, "lucene.test.atomic"); + File dirPath = _TestUtil.getTempDir("lucene.test.atomic"); directory = FSDirectory.open(dirPath); runTest(directory); directory.close();