mirror of https://github.com/apache/lucene.git
fix intermittant failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1027991 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
07a5f01b26
commit
2bf814d5b9
|
@ -643,10 +643,8 @@ public class TestExternalCodecs extends LuceneTestCase {
|
|||
|
||||
IndexReader r = IndexReader.open(w);
|
||||
IndexReader[] subs = r.getSequentialSubReaders();
|
||||
assertTrue(subs.length > 1);
|
||||
// test each segment
|
||||
for(int i=0;i<subs.length;i++) {
|
||||
//System.out.println("test i=" + i);
|
||||
testTermsOrder(subs[i]);
|
||||
}
|
||||
// test each multi-reader
|
||||
|
@ -679,6 +677,7 @@ public class TestExternalCodecs extends LuceneTestCase {
|
|||
|
||||
dir.close();
|
||||
}
|
||||
|
||||
private void testTermsOrder(IndexReader r) throws Exception {
|
||||
|
||||
// Verify sort order matches what my comparator said:
|
||||
|
|
Loading…
Reference in New Issue