Browse Source

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

Simon Willnauer 11 years ago
parent
commit
965b85a663
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/test/java/org/elasticsearch/mlt/MoreLikeThisActionTests.java

+ 1 - 1
src/test/java/org/elasticsearch/mlt/MoreLikeThisActionTests.java

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