From 1f66672d6fe43ae32f2f50a08161f56d373eb19c Mon Sep 17 00:00:00 2001 From: Tanguy Leroux Date: Wed, 17 Jan 2018 15:05:07 +0100 Subject: [PATCH] [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. --- .../rest-api-spec/test/indices.stats/13_fields.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/13_fields.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/13_fields.yml index 25f0e20d0d0..82655c5778d 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.stats/13_fields.yml +++ b/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: