Apache Solr open-source search software
tests: remove this test
Mark Robert Miller42f445b035d5
diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/BasicHttpSolrServerTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/BasicHttpSolrServerTest.javaindex b053b81d5b9..5e801060919 100644--- a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/BasicHttpSolrServerTest.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/BasicHttpSolrServerTest.java@@ -141,26 +141,6 @@ public class BasicHttpSolrServerTest extends SolrJettyTestBase {.addServletWithMapping(DebugServlet.class, "/debug/*");}- // what is this actually testing? this test WILL randomly fail.- // not a good unit test!- @Test- public void testConnectionRefused() throws MalformedURLException {- int unusedPort = findUnusedPort(); // XXX even if fwe found an unused port- // it might not be unused anymore- HttpSolrServer server = new HttpSolrServer(buildUrl(unusedPort, "/solr"));- server.setConnectionTimeout(500);- SolrQuery q = new SolrQuery("*:*");- try {- QueryResponse response = server.query(q);- fail("Should have thrown an exception.");- } catch (SolrServerException e) {- assumeFalse("blackholed!", e.getMessage().contains("IOException occured when talking to server"));- assertTrue(e.getMessage().contains("refused"));- } finally {- server.shutdown();- }- }-@Testpublic void testTimeout() throws Exception {HttpSolrServer server = new HttpSolrServer(jetty.getBaseUrl().toString() +