Need use ensureYellow() b/c get mapping request checks on actual shard instead of master node

This commit is contained in:
Simon Willnauer 2014-02-24 20:58:44 +01:00
parent 8c3fa0551f
commit 92f132aede
1 changed files with 1 additions and 1 deletions

View File

@ -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()