You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by mi...@apache.org on 2009/12/11 18:48:45 UTC
svn commit: r889725 -
/lucene/java/branches/flex_1458_3_0_back_compat_tests/src/test/org/apache/lucene/index/TestStressIndexing2.java
Author: mikemccand
Date: Fri Dec 11 17:48:45 2009
New Revision: 889725
URL: http://svn.apache.org/viewvc?rev=889725&view=rev
Log:
flex: fix test that's making invalid use of API
Modified:
lucene/java/branches/flex_1458_3_0_back_compat_tests/src/test/org/apache/lucene/index/TestStressIndexing2.java
Modified: lucene/java/branches/flex_1458_3_0_back_compat_tests/src/test/org/apache/lucene/index/TestStressIndexing2.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/flex_1458_3_0_back_compat_tests/src/test/org/apache/lucene/index/TestStressIndexing2.java?rev=889725&r1=889724&r2=889725&view=diff
==============================================================================
--- lucene/java/branches/flex_1458_3_0_back_compat_tests/src/test/org/apache/lucene/index/TestStressIndexing2.java (original)
+++ lucene/java/branches/flex_1458_3_0_back_compat_tests/src/test/org/apache/lucene/index/TestStressIndexing2.java Fri Dec 11 17:48:45 2009
@@ -352,7 +352,7 @@
if (!termEnum1.next()) break;
}
- // iterate until we get some docs
+ // iterate until we get some docs
int len2;
for(;;) {
len2=0;
@@ -369,12 +369,12 @@
if (!termEnum2.next()) break;
}
- if (!hasDeletes)
- assertEquals(termEnum1.docFreq(), termEnum2.docFreq());
-
assertEquals(len1, len2);
if (len1==0) break; // no more terms
+ if (!hasDeletes)
+ assertEquals(termEnum1.docFreq(), termEnum2.docFreq());
+
assertEquals(term1, term2);
// sort info2 to get it into ascending docid