mirror of https://github.com/apache/lucene.git
SOLR-9087: avoid IndexOutOfBoundsException in TestReplicationHandler.doTestIndexAndConfigAliasReplication
This commit is contained in:
parent
73b4defc07
commit
8e927b2f3d
|
@ -1325,7 +1325,9 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
|
|||
slaveClient.commit();
|
||||
|
||||
slaveQueryRsp = rQuery(1, "id:2001", slaveClient);
|
||||
SolrDocument d = ((SolrDocumentList) slaveQueryRsp.get("response")).get(0);
|
||||
final SolrDocumentList sdl = (SolrDocumentList) slaveQueryRsp.get("response");
|
||||
assertEquals(1, sdl.getNumFound());
|
||||
final SolrDocument d = sdl.get(0);
|
||||
assertEquals("n2001", (String) d.getFieldValue("newname"));
|
||||
|
||||
checkForSingleIndex(masterJetty);
|
||||
|
|
Loading…
Reference in New Issue