From f7a88fdd3eb67fcb156bde1e03e4880797cde4fa Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Sun, 13 Jul 2014 17:21:26 +0900 Subject: [PATCH] [TEST] wait for green before deleting mapping --- .../elasticsearch/indices/IndicesOptionsIntegrationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/indices/IndicesOptionsIntegrationTests.java b/src/test/java/org/elasticsearch/indices/IndicesOptionsIntegrationTests.java index 79b5b82d000..3672ceb4c3f 100644 --- a/src/test/java/org/elasticsearch/indices/IndicesOptionsIntegrationTests.java +++ b/src/test/java/org/elasticsearch/indices/IndicesOptionsIntegrationTests.java @@ -475,7 +475,7 @@ public class IndicesOptionsIntegrationTests extends ElasticsearchIntegrationTest @Test public void testDeleteMapping() throws Exception { assertAcked(prepareCreate("foobar").addMapping("type1", "field", "type=string")); - ensureYellow(); + ensureGreen(); verify(client().admin().indices().prepareDeleteMapping("foo").setType("type1"), true); assertThat(client().admin().indices().prepareTypesExists("foobar").setTypes("type1").get().isExists(), equalTo(true)); @@ -577,7 +577,7 @@ public class IndicesOptionsIntegrationTests extends ElasticsearchIntegrationTest assertAcked(prepareCreate("bar").addMapping("type3", "field", "type=string")); assertAcked(prepareCreate("barbaz").addMapping("type4", "field", "type=string")); - ensureYellow(); + ensureGreen(); assertThat(client().admin().indices().prepareTypesExists("foo").setTypes("type1").get().isExists(), equalTo(true)); assertThat(client().admin().indices().prepareTypesExists("foobar").setTypes("type2").get().isExists(), equalTo(true));