浏览代码

Added waiting for yellow cluster state in rest test

In order to prevent rare timing issue, where the creation
of an index happens in the cluster state too late and thus
results in empty mappings.
Alexander Reelsen 11 年之前
父节点
当前提交
4d68d722a1
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      rest-api-spec/test/indices.get_field_mapping/50_field_wildcards.yaml

+ 4 - 0
rest-api-spec/test/indices.get_field_mapping/50_field_wildcards.yaml

@@ -46,6 +46,10 @@ setup:
                           type:   string
                           index_name: t3
 
+  - do:
+      cluster.health:
+          wait_for_status: yellow
+
 ---
 "Get field mapping with * for fields":