mirror of https://github.com/apache/lucene.git
LUCENE-3454: fix test bug
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1201123 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
70c58b9845
commit
dc7704b284
|
@ -95,7 +95,7 @@ public class TestIndexReader extends LuceneTestCase
|
|||
IndexReader r3 = IndexReader.openIfChanged(r2);
|
||||
assertNotNull(r3);
|
||||
assertFalse(c.equals(r3.getIndexCommit()));
|
||||
assertFalse(r2.getIndexCommit().getSegmentCount() == 1);
|
||||
assertFalse(r2.getIndexCommit().getSegmentCount() == 1 && !r2.hasDeletions());
|
||||
r3.close();
|
||||
|
||||
writer = new IndexWriter(d, newIndexWriterConfig(TEST_VERSION_CURRENT,
|
||||
|
|
Loading…
Reference in New Issue