LUCENE-5434: fix test bug: this test case uses a non-NRT reader too

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1565617 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-02-07 10:52:17 +00:00
parent e4ed871c5e
commit f9ea3f8101
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ public class TestIndexWriterReader extends LuceneTestCase {
} }
public void testAddCloseOpen() throws IOException { public void testAddCloseOpen() throws IOException {
Directory dir1 = getAssertNoDeletesDirectory(newDirectory()); // Can't use assertNoDeletes: this test pulls a non-NRT
// reader in the end:
Directory dir1 = newDirectory();
IndexWriterConfig iwc = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random())); IndexWriterConfig iwc = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer(random()));
IndexWriter writer = new IndexWriter(dir1, iwc); IndexWriter writer = new IndexWriter(dir1, iwc);