Tests: fix tests not to use CWD
This commit is contained in:
parent
aa40c64906
commit
3378232854
|
@ -47,6 +47,7 @@ public class SimplePhoneticAnalysisTests extends ElasticsearchTestCase {
|
||||||
public void testPhoneticTokenFilterFactory() {
|
public void testPhoneticTokenFilterFactory() {
|
||||||
Settings settings = settingsBuilder().loadFromClasspath("org/elasticsearch/index/analysis/phonetic-1.yml")
|
Settings settings = settingsBuilder().loadFromClasspath("org/elasticsearch/index/analysis/phonetic-1.yml")
|
||||||
.put(IndexMetaData.SETTING_VERSION_CREATED, Version.CURRENT)
|
.put(IndexMetaData.SETTING_VERSION_CREATED, Version.CURRENT)
|
||||||
|
.put("path.home", createTempDir())
|
||||||
.build();
|
.build();
|
||||||
AnalysisService analysisService = testSimpleConfiguration(settings);
|
AnalysisService analysisService = testSimpleConfiguration(settings);
|
||||||
TokenFilterFactory filterFactory = analysisService.tokenFilter("phonetic");
|
TokenFilterFactory filterFactory = analysisService.tokenFilter("phonetic");
|
||||||
|
|
Loading…
Reference in New Issue