mirror of https://github.com/apache/lucene.git
fix false random test failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@990854 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
838e19beae
commit
2f649441fb
|
@ -372,7 +372,6 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
|
|||
Directory dir = FSDirectory.open(new File(dirName));
|
||||
// open writer
|
||||
IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig(random, TEST_VERSION_CURRENT, new MockAnalyzer()).setOpenMode(OpenMode.APPEND));
|
||||
|
||||
// add 10 docs
|
||||
for(int i=0;i<10;i++) {
|
||||
addDoc(writer, 35+i);
|
||||
|
@ -381,11 +380,11 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
|
|||
// make sure writer sees right total -- writer seems not to know about deletes in .del?
|
||||
final int expected;
|
||||
if (compare(origDirName, "24") < 0) {
|
||||
expected = 45;
|
||||
expected = 44;
|
||||
} else {
|
||||
expected = 46;
|
||||
expected = 45;
|
||||
}
|
||||
assertEquals("wrong doc count", expected, writer.maxDoc());
|
||||
assertEquals("wrong doc count", expected, writer.numDocs());
|
||||
writer.close();
|
||||
|
||||
// make sure searching sees right # hits
|
||||
|
|
Loading…
Reference in New Issue