From 135404fffc21d6e9d6f3982ca1e6ca38099755c9 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Mon, 7 Jul 2014 18:42:20 +0200 Subject: [PATCH] [TEST] wait for green to update mapping before we update the mapping, make sure the index is green, so a delayed recovery update mapping will not override the mapping itself --- .../org/elasticsearch/index/mapper/geo/GeoMappingTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/index/mapper/geo/GeoMappingTests.java b/src/test/java/org/elasticsearch/index/mapper/geo/GeoMappingTests.java index 44c95752798..58e2159efa3 100644 --- a/src/test/java/org/elasticsearch/index/mapper/geo/GeoMappingTests.java +++ b/src/test/java/org/elasticsearch/index/mapper/geo/GeoMappingTests.java @@ -45,7 +45,7 @@ public class GeoMappingTests extends ElasticsearchIntegrationTest { .endObject() .endObject() .endObject()).execute().actionGet(); - ensureYellow(); + ensureGreen(); assertPrecision(new Distance(2, DistanceUnit.MILLIMETERS)); client().admin().indices().preparePutMapping("test").setType("type1").setSource(XContentFactory.jsonBuilder().startObject()