From 99bcf031625d1edcf1da7f1a2495bd60704b5e7a Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Sun, 1 Aug 2010 15:29:09 +0000 Subject: [PATCH] tests: remove retry loop git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@981245 13f79535-47bb-0310-9956-ffa450edef68 --- .../solr/handler/TestReplicationHandler.java | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/solr/src/test/org/apache/solr/handler/TestReplicationHandler.java b/solr/src/test/org/apache/solr/handler/TestReplicationHandler.java index dd97d946ec2..d4a73bb0065 100644 --- a/solr/src/test/org/apache/solr/handler/TestReplicationHandler.java +++ b/solr/src/test/org/apache/solr/handler/TestReplicationHandler.java @@ -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); + slaveQueryRsp = rQuery(1, "id:555", slaveClient); + slaveQueryResult = (SolrDocumentList) slaveQueryRsp.get("response"); assertEquals(1, slaveQueryResult.getNumFound()); masterUrl = "http://localhost:" + masterJetty.getLocalPort() + "/solr/replication?command=enableReplication";