[TEST] add mapping to MoreLikeThisActionTests to make sure doc mapper exists on all shards / nodes

This commit is contained in:
Simon Willnauer 2014-03-16 07:29:14 +01:00
parent 7f49d027b9
commit 965b85a663
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class MoreLikeThisActionTests extends ElasticsearchIntegrationTest {
@Test
public void testSimpleMoreLikeOnLongField() throws Exception {
logger.info("Creating index test");
createIndex("test");
assertAcked(prepareCreate("test").addMapping("type1", "some_long", "type=long"));
logger.info("Running Cluster Health");
assertThat(ensureGreen(), equalTo(ClusterHealthStatus.GREEN));