Skip to content

Apache Lucene open-source search software

SOLR-6175: Fix failing test by removing assert that matches exception message. They might be different between platforms.

Shalin Shekhar Mangar30fa1375cd81
diff --git a/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java b/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java
index 833eb6d4f07..2f97fd2b9d1 100644
--- a/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java
+++ b/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java
@@ -396,7 +396,6 @@ public class DistributedDebugComponentTest extends SolrJettyTestBase {
assertEquals("Unexpected response size for shard", 1, badShardTrack.size());
Entry<String, String> exception = badShardTrack.iterator().next();
assertEquals("Expected key 'Exception' not found", "Exception", exception.getKey());
- assertTrue("Unexpected exception message", exception.getValue().contains("Server refused connection"));
unIgnoreException("Server refused connection");
}