From 344f8f07e148b7676ea4aaa1ce669b48b9d0f7d0 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Thu, 1 Nov 2012 10:01:17 +0000 Subject: [PATCH] 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 --- .../src/test/org/apache/lucene/queries/TermsFilterTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/queries/src/test/org/apache/lucene/queries/TermsFilterTest.java b/lucene/queries/src/test/org/apache/lucene/queries/TermsFilterTest.java index 83351493e1f..3a4aa504a52 100644 --- a/lucene/queries/src/test/org/apache/lucene/queries/TermsFilterTest.java +++ b/lucene/queries/src/test/org/apache/lucene/queries/TermsFilterTest.java @@ -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 asList = new ArrayList(uniqueTerms); asList.remove(0); TermsFilter notEqual = termsFilter(singleField ? random().nextBoolean() : false, asList);