mirror of https://github.com/apache/lucene.git
tests: remove retry loop
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@981245 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8bfc318bbf
commit
99bcf03162
|
@ -452,20 +452,8 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
|
|||
//this doc is added to slave so it should show an item w/ that result
|
||||
SolrDocumentList slaveQueryResult = null;
|
||||
NamedList slaveQueryRsp;
|
||||
// try a few times in case tests are running slow
|
||||
for (int i = 0; i < 30; i++) {
|
||||
slaveQueryRsp = rQuery(1, "id:555", slaveClient);
|
||||
slaveQueryResult = (SolrDocumentList) slaveQueryRsp.get("response");
|
||||
if (slaveQueryResult.getNumFound() > 0) {
|
||||
break;
|
||||
}
|
||||
Thread.sleep(100);
|
||||
|
||||
// The last commit may have failed due to exceeding max warming searchers.
|
||||
// We'll try again.
|
||||
slaveClient.commit(true, true);
|
||||
}
|
||||
assertNotNull(slaveQueryResult);
|
||||
assertEquals(1, slaveQueryResult.getNumFound());
|
||||
|
||||
masterUrl = "http://localhost:" + masterJetty.getLocalPort() + "/solr/replication?command=enableReplication";
|
||||
|
|
Loading…
Reference in New Issue