浏览代码

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

Simon Willnauer 11 年之前
父节点
当前提交
965b85a663
共有 1 个文件被更改,包括 1 次插入1 次删除
  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));