mirror of https://github.com/apache/lucene.git
SOLR-12946: tighten up request/expectations in test
This should prevent some non-reproducible failures where (i think) the problem was inconsistnet background merges between collections being compared, resulting in facet counts (of 0) for terms that weren't in equivilent (merged) indexes. since the purpose of the test has nothing to do with mincount, force facet.mincount=0 and be more exact about how many terms we expect (in case the root problem lies somewhere else, be more assertive about finding it)
This commit is contained in:
parent
3ed64375ef
commit
05f72a77ef
|
@ -253,12 +253,14 @@ public class DistribCursorPagingTest extends AbstractFullDistribZkTestBase {
|
|||
"fl", "id",
|
||||
"facet", "true",
|
||||
"facet.field", "str",
|
||||
"facet.mincount", "1",
|
||||
"json.nl", "map",
|
||||
"sort", intsort + " asc, id asc");
|
||||
rsp = query(p(params, CURSOR_MARK_PARAM, cursorMark));
|
||||
assertNumFound(8, rsp);
|
||||
assertStartsAt(0, rsp);
|
||||
assertDocList(rsp, 7, 0, 3);
|
||||
assertEquals(3, rsp.getFacetField("str").getValues().size());
|
||||
assertEquals("a", rsp.getFacetField("str").getValues().get(0).getName());
|
||||
assertEquals(4, rsp.getFacetField("str").getValues().get(0).getCount());
|
||||
cursorMark = assertHashNextCursorMark(rsp);
|
||||
|
|
Loading…
Reference in New Issue