mirror of
https://github.com/apache/lucene.git
synced 2025-02-24 11:16:35 +00:00
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:
parent
e2a1ee29e0
commit
164972785c
@ -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
|
||||
|
@ -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'])");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user