From 5dc3e721e0b2d239715d43292c04dca8a36bfdb4 Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Mon, 18 Jan 2016 13:03:19 +0100 Subject: [PATCH] fix test --- .../elasticsearch/indices/template/SimpleIndexTemplateIT.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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");