These 2 tests should use the refcounting dir impls, because the test checks, that exectly this refcounting works with reopen()

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@782754 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2009-06-08 19:55:55 +00:00
parent 406454d30b
commit 3331d74c5e
1 changed files with 2 additions and 2 deletions

View File

@ -1083,7 +1083,7 @@ public class TestIndexReaderReopen extends LuceneTestCase {
// LUCENE-1453
public void testFSDirectoryReopen() throws CorruptIndexException, IOException {
Directory dir1 = FSDirectory.open(indexDir, null);
Directory dir1 = FSDirectory.getDirectory(indexDir, null);
createIndex(dir1, false);
dir1.close();
@ -1112,7 +1112,7 @@ public class TestIndexReaderReopen extends LuceneTestCase {
throw new IOException("java.io.tmpdir undefined, cannot run test");
File indexDir2 = new File(tempDir, "IndexReaderReopen2");
Directory dir1 = FSDirectory.open(indexDir2);
Directory dir1 = FSDirectory.getDirectory(indexDir2);
createIndex(dir1, false);
IndexReader lastReader = IndexReader.open(indexDir2);