Tests: fix tests not to use CWD

This commit is contained in:
Robert Muir 2015-05-05 12:53:30 -04:00
parent aa40c64906
commit 3378232854
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ public class SimplePhoneticAnalysisTests extends ElasticsearchTestCase {
public void testPhoneticTokenFilterFactory() {
Settings settings = settingsBuilder().loadFromClasspath("org/elasticsearch/index/analysis/phonetic-1.yml")
.put(IndexMetaData.SETTING_VERSION_CREATED, Version.CURRENT)
.put("path.home", createTempDir())
.build();
AnalysisService analysisService = testSimpleConfiguration(settings);
TokenFilterFactory filterFactory = analysisService.tokenFilter("phonetic");