Skip to content

Apache Lucene open-source search software

fix LB tests for those with ISPs that never fail DNS lookups

Yonik Seeley7ce145de869a
diff --git a/solr/src/test/org/apache/solr/BaseDistributedSearchTestCase.java b/solr/src/test/org/apache/solr/BaseDistributedSearchTestCase.java
index 92ea4c9f631..2b7ab0faad3 100644
--- a/solr/src/test/org/apache/solr/BaseDistributedSearchTestCase.java
+++ b/solr/src/test/org/apache/solr/BaseDistributedSearchTestCase.java
@@ -55,7 +55,9 @@ public abstract class BaseDistributedSearchTestCase extends SolrTestCaseJ4 {
protected String context = "/solr";
protected String shards;
protected String[] shardsArr;
- protected String[] deadServers = {"does_not_exist_54321.com:33331/solr","localhost:33332/solr"};
+ // Some ISPs redirect to their own web site for domains that don't exist, causing this to fail
+ // protected String[] deadServers = {"does_not_exist_54321.com:33331/solr","localhost:33332/solr"};
+ protected String[] deadServers = {"localhost:33332/solr"};
protected File testDir;
protected SolrServer controlClient;