SOLR-7619: Fix SegmentsInfoRequestHandlerTest when more than one segment is created

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1685433 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ramkumar Aiyengar 2015-06-14 18:18:06 +00:00
parent e2a1ee29e0
commit 164972785c
2 changed files with 6 additions and 3 deletions

View File

@ -187,6 +187,9 @@ Other Changes
zkCredientialsProvider element in solrcloud section of solr.xml.
(Xu Zhang, Per Steffensen, Ramkumar Aiyengar, Mark Miller)
* SOLR-7619: Fix SegmentsInfoRequestHandlerTest when more than one segment is created.
(Ramkumar Aiyengar, Steve Rowe)
================== 5.2.1 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release

View File

@ -51,7 +51,7 @@ public class SegmentsInfoRequestHandlerTest extends AbstractSolrTestCase {
public void testSegmentInfos() {
assertQ("No segments mentioned in result",
req("qt","/admin/segments"),
"1=count(//lst[@name='segments']/lst)");
"0<count(//lst[@name='segments']/lst)");
}
@Test
@ -59,8 +59,8 @@ public class SegmentsInfoRequestHandlerTest extends AbstractSolrTestCase {
assertQ("No segments mentioned in result",
req("qt","/admin/segments"),
//#Document
DOC_COUNT+"=//lst[@name='segments']/lst[1]/int[@name='size']",
DOC_COUNT+"=sum(//lst[@name='segments']/lst[*]/int[@name='size'])",
//#Deletes
DEL_COUNT+"=//lst[@name='segments']/lst[1]/int[@name='delCount']");
DEL_COUNT+"=sum(//lst[@name='segments']/lst[*]/int[@name='delCount'])");
}
}