mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
[TEST] Remove redundant call to setTemplateType()
This commit is contained in:
parent
4111d932f6
commit
bf1e1de3f1
@ -264,7 +264,7 @@ public class TemplateQueryTest extends ElasticsearchIntegrationTest {
|
|||||||
templateParams.put("fieldParam", "foo");
|
templateParams.put("fieldParam", "foo");
|
||||||
|
|
||||||
SearchResponse searchResponse = client().prepareSearch("test").setTypes("type").
|
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);
|
assertHitCount(searchResponse, 4);
|
||||||
|
|
||||||
DeleteIndexedScriptResponse deleteResponse = client().prepareDeleteIndexedScript("mustache","testTemplate").get();
|
DeleteIndexedScriptResponse deleteResponse = client().prepareDeleteIndexedScript("mustache","testTemplate").get();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user