mirror of https://github.com/apache/lucene.git
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:
parent
e4ed871c5e
commit
f9ea3f8101
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue