Skip to content

Commit 67c2f41

Browse files
authored
Fix serverless test - wait for index green just after first insertion (#121180)
1 parent d3a8a4b commit 67c2f41

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ setup:
1414
- synonyms: "bye => goodbye"
1515
id: "synonym-rule-2"
1616

17+
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
18+
- do:
19+
cluster.health:
20+
index: .synonyms
21+
wait_for_status: green
22+
1723
# Create synonyms synonyms_set2
1824
- do:
1925
synonyms.put_synonym:
@@ -25,12 +31,6 @@ setup:
2531
- synonyms: "bye => goodbye"
2632
id: "synonym-rule-2"
2733

28-
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
29-
- do:
30-
cluster.health:
31-
index: .synonyms
32-
wait_for_status: green
33-
3434
# Create my_index1 with synonym_filter that uses synonyms_set1
3535
- do:
3636
indices.create:

0 commit comments

Comments
 (0)