Skip to content

Commit 6f64fe2

Browse files
committed
Adjust number of shards
1 parent 9891704 commit 6f64fe2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/synonyms/90_synonyms_reloading_for_synset.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@
106106
- synonyms: "hello, salute"
107107
- synonyms: "ciao => goodbye"
108108
- match: { result: "updated" }
109-
- gte: { reload_analyzers_details._shards.total: 2 } # shard requests are still sent to 2 indices
110-
- gte: { reload_analyzers_details._shards.successful: 2 }
109+
- set: { reload_analyzers_details._shards.total: total_shards }
110+
- gte: { reload_analyzers_details._shards.total: 2 } # Shards for all indices were reloaded. On serverless this may be more as there are more replicas
111+
- match: { reload_analyzers_details._shards.successful: $total_shards }
111112
- length: { reload_analyzers_details.reload_details: 1 } # reload details contain only a single index
112113
- match: { reload_analyzers_details.reload_details.0.index: "my_index1" }
113114
- match: { reload_analyzers_details.reload_details.0.reloaded_analyzers.0: "my_analyzer1" }

0 commit comments

Comments
 (0)