diff --git a/core/src/test/java/org/elasticsearch/indices/template/SimpleIndexTemplateIT.java b/core/src/test/java/org/elasticsearch/indices/template/SimpleIndexTemplateIT.java index 4a85b97fde4..b0575e00350 100644 --- a/core/src/test/java/org/elasticsearch/indices/template/SimpleIndexTemplateIT.java +++ b/core/src/test/java/org/elasticsearch/indices/template/SimpleIndexTemplateIT.java @@ -332,9 +332,7 @@ public class SimpleIndexTemplateIT extends ESIntegTestCase { } response = client().admin().indices().prepareGetTemplates().get(); - assertThat(response.getIndexTemplates(), hasSize(1)); - assertThat(response.getIndexTemplates().get(0).getSettings().getAsMap().size(), equalTo(1)); - assertNull(response.getIndexTemplates().get(0).getSettings().get("index.does_not_exist")); + assertEquals(0, response.getIndexTemplates().size()); createIndex("test");