Need use ensureYellow() b/c get mapping request checks on actual shard instead of master node
This commit is contained in:
parent
8c3fa0551f
commit
92f132aede
|
@ -45,7 +45,7 @@ public class GeoMappingTests extends ElasticsearchIntegrationTest {
|
||||||
.endObject()
|
.endObject()
|
||||||
.endObject()
|
.endObject()
|
||||||
.endObject()).execute().actionGet();
|
.endObject()).execute().actionGet();
|
||||||
|
ensureYellow();
|
||||||
assertPrecision(new Distance(2, DistanceUnit.MILLIMETERS));
|
assertPrecision(new Distance(2, DistanceUnit.MILLIMETERS));
|
||||||
|
|
||||||
client().admin().indices().preparePutMapping("test").setType("type1").setSource(XContentFactory.jsonBuilder().startObject()
|
client().admin().indices().preparePutMapping("test").setType("type1").setSource(XContentFactory.jsonBuilder().startObject()
|
||||||
|
|
Loading…
Reference in New Issue