mirror of https://github.com/apache/lucene.git
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:
parent
7307bb7eba
commit
067c8b2b30
|
@ -59,11 +59,12 @@ public class TestConfigSets extends SolrTestCaseJ4 {
|
|||
|
||||
NodeConfig config
|
||||
= 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
|
||||
= 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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue