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
This commit is contained in:
Michael McCandless 2009-10-01 12:13:18 +00:00
parent ec90bc2202
commit e1362d4f03
1 changed files with 1 additions and 2 deletions

View File

@ -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();