[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
This commit is contained in:
parent
807b2409ee
commit
135404fffc
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue