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:
Michael McCandless 2011-11-12 00:38:33 +00:00
parent 70c58b9845
commit dc7704b284
1 changed files with 1 additions and 1 deletions

View File

@ -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,