瀏覽代碼

[Test] Fix indices.stats/13_fields

Remove the wait_for_active_shards: all added by commit 6256c since it
does not work when the cluster has 1 node only.
Tanguy Leroux 7 年之前
父節點
當前提交
1f66672d6f
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/13_fields.yml

+ 6 - 1
rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/13_fields.yml

@@ -6,6 +6,12 @@ setup:
           index:  test1
           wait_for_active_shards: all
           body:
+              settings:
+                # Limit the number of shards so that shards are unlikely
+                # to be relocated or being initialized between the test
+                # set up and the test execution
+                index.number_of_shards: 3
+                index.number_of_replicas: 0
               mappings:
                   bar:
                       properties:
@@ -24,7 +30,6 @@ setup:
 
   - do:
       cluster.health:
-        wait_for_active_shards: all
         wait_for_no_relocating_shards: true
 
   - do: