test-bug - o f*** random testing kicks in

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1404524 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2012-11-01 10:01:17 +00:00
parent bebdb3707a
commit 344f8f07e1
1 changed files with 1 additions and 1 deletions

View File

@ -287,7 +287,7 @@ public class TermsFilterTest extends LuceneTestCase {
TermsFilter right = termsFilter(singleField ? random().nextBoolean() : false, terms);
assertEquals(right, left);
assertEquals(right.hashCode(), left.hashCode());
if (i > 0) {
if (uniqueTerms.size() > 1) {
List<Term> asList = new ArrayList<Term>(uniqueTerms);
asList.remove(0);
TermsFilter notEqual = termsFilter(singleField ? random().nextBoolean() : false, asList);