[TEST] Remove redundant call to setTemplateType()

This commit is contained in:
Lukas Vlcek 2014-10-30 17:05:57 +01:00 committed by Colin Goodheart-Smithe
parent 4111d932f6
commit bf1e1de3f1
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ public class TemplateQueryTest extends ElasticsearchIntegrationTest {
templateParams.put("fieldParam", "foo");
SearchResponse searchResponse = client().prepareSearch("test").setTypes("type").
setTemplateName("testTemplate").setTemplateType(ScriptService.ScriptType.INDEXED).setTemplateType(ScriptService.ScriptType.INDEXED).setTemplateParams(templateParams).get();
setTemplateName("testTemplate").setTemplateType(ScriptService.ScriptType.INDEXED).setTemplateParams(templateParams).get();
assertHitCount(searchResponse, 4);
DeleteIndexedScriptResponse deleteResponse = client().prepareDeleteIndexedScript("mustache","testTemplate").get();