mirror of https://github.com/apache/lucene.git
Compare canonical paths instead of absolute paths
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1646492 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2950159a2c
commit
85ccfa8b22
|
@ -1131,12 +1131,17 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa
|
|||
new 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue