Skip to content

Commit 61b3e0b

Browse files
authored
Fix flaky vector test (elastic#130732)
Closes elastic#130678
1 parent e574255 commit 61b3e0b

File tree

1 file changed

+6
-0
lines changed
  • rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors

1 file changed

+6
-0
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/search.vectors/40_knn_search.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,15 @@ setup:
621621
index:
622622
index: test_index
623623
id: "0"
624+
refresh: true
624625
body:
625626
embedding: [ 0.5, 111.3, -13.0, 14.8, -156.0 ]
626627

628+
# wait and ensure that the mapping update is replicated
629+
- do:
630+
cluster.health:
631+
wait_for_events: languid
632+
627633
- do:
628634
indices.get_mapping:
629635
index: test_index

0 commit comments

Comments
 (0)