Skip to content

Commit

Permalink
Fix serverless test - wait for index green just after first insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Jan 29, 2025
1 parent 439dcdc commit d3f6c75
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ setup:
- synonyms: "bye => goodbye"
id: "synonym-rule-2"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms
wait_for_status: green

# Create synonyms synonyms_set2
- do:
synonyms.put_synonym:
Expand All @@ -25,12 +31,6 @@ setup:
- synonyms: "bye => goodbye"
id: "synonym-rule-2"

# This is to ensure that all index shards (write and read) are available. In serverless this can take some time.
- do:
cluster.health:
index: .synonyms
wait_for_status: green

# Create my_index1 with synonym_filter that uses synonyms_set1
- do:
indices.create:
Expand Down

0 comments on commit d3f6c75

Please sign in to comment.