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:
Michael McCandless 2010-10-27 15:00:52 +00:00
parent 07a5f01b26
commit 2bf814d5b9
1 changed files with 1 additions and 2 deletions

View File

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