Apache Lucene open-source search software
Compare canonical paths instead of absolute paths
Shalin Shekhar Mangar85ccfa8b2226
diff --git a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.javaindex bd67307a3ac..db2e24aa9d2 100644--- a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java@@ -1131,12 +1131,17 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBanew File((String) core.getStatistics().get("instanceDir"),"core.properties").exists());}-- assertEquals(- new File(SolrResourceLoader.normalizeDir(jetty.getSolrHome() + File.separator- + core.getName())).getAbsolutePath(),- new File(SolrResourceLoader.normalizeDir((String) core.getStatistics().get(- "instanceDir"))).getAbsolutePath());++ try {+ assertEquals(+ new File(SolrResourceLoader.normalizeDir(jetty.getSolrHome() + File.separator+ + core.getName())).getCanonicalPath(),+ new File(SolrResourceLoader.normalizeDir((String) core.getStatistics().get(+ "instanceDir"))).getCanonicalPath());+ } catch (IOException e) {+ log.error("Failed to get canonical path", e);+ fail("Failed to get canonical path");+ }}}