SOLR-8278: Fix Windows test bug

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1714041 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alan Woodward 2015-11-12 13:26:20 +00:00
parent 7307bb7eba
commit 067c8b2b30
1 changed files with 3 additions and 2 deletions

View File

@ -59,11 +59,12 @@ public class TestConfigSets extends SolrTestCaseJ4 {
NodeConfig config NodeConfig config
= SolrXmlConfig.fromString(loader, "<solr><str name=\"configSetBaseDir\">configsets</str></solr>"); = SolrXmlConfig.fromString(loader, "<solr><str name=\"configSetBaseDir\">configsets</str></solr>");
assertThat(config.getConfigSetBaseDirectory(), is(Paths.get("/path/to/solr/home/configsets"))); assertThat(config.getConfigSetBaseDirectory().toAbsolutePath(),
is(Paths.get("/path/to/solr/home/configsets").toAbsolutePath()));
NodeConfig absConfig NodeConfig absConfig
= SolrXmlConfig.fromString(loader, "<solr><str name=\"configSetBaseDir\">/path/to/configsets</str></solr>"); = SolrXmlConfig.fromString(loader, "<solr><str name=\"configSetBaseDir\">/path/to/configsets</str></solr>");
assertThat(absConfig.getConfigSetBaseDirectory(), is(Paths.get("/path/to/configsets"))); assertThat(absConfig.getConfigSetBaseDirectory().toAbsolutePath(), is(Paths.get("/path/to/configsets").toAbsolutePath()));
} }
} }