SOLR-9087: avoid IndexOutOfBoundsException in TestReplicationHandler.doTestIndexAndConfigAliasReplication

This commit is contained in:
Christine Poerschke 2016-05-10 09:58:34 +01:00
parent 73b4defc07
commit 8e927b2f3d
1 changed files with 3 additions and 1 deletions

View File

@ -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);