Skip to content

Commit

Permalink
SOLR-9087: avoid IndexOutOfBoundsException in TestReplicationHandler.…
Browse files Browse the repository at this point in the history
…doTestIndexAndConfigAliasReplication
  • Loading branch information
cpoerschke committed May 10, 2016
1 parent f4359ff commit a5d785a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,9 @@ public void doTestIndexAndConfigAliasReplication() throws Exception {
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);
Expand Down

0 comments on commit a5d785a

Please sign in to comment.