Fixed small test bug.

This commit is contained in:
Martijn van Groningen 2013-11-19 11:26:45 +01:00
parent c96cb99cef
commit 244e78fbfb
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ public class XBooleanFilterTests extends ElasticsearchLuceneTestCase {
rightResult.or(rightIter); rightResult.or(rightIter);
} }
assertThat(leftResult.cardinality(), equalTo(leftResult.cardinality())); assertThat(leftResult.cardinality(), equalTo(rightResult.cardinality()));
for (int i = 0; i < reader.maxDoc(); i++) { for (int i = 0; i < reader.maxDoc(); i++) {
assertThat(errorMsg(clauses, topLevel) + " -- failed at index " + i, leftResult.get(i), equalTo(rightResult.get(i))); assertThat(errorMsg(clauses, topLevel) + " -- failed at index " + i, leftResult.get(i), equalTo(rightResult.get(i)));
} }