Skip to content

Commit 2d45a8d

Browse files
authored
Fix flakiness on YAML tests for Sparse Vector (#137202)
* add indices to deletion on teardown * unmute test (only the 1 is muted)
1 parent 60406a6 commit 2d45a8d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,6 @@ tests:
489489
- class: org.elasticsearch.xpack.esql.qa.mixed.FieldExtractorIT
490490
method: testTextFieldWithKeywordSubfield {STORED}
491491
issue: https://github.com/elastic/elasticsearch/issues/136918
492-
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
493-
method: test {p0=ml/sparse_vector_search/Test sparse_vector search with query vector and pruning config}
494-
issue: https://github.com/elastic/elasticsearch/issues/136061
495492
- class: org.elasticsearch.xpack.esql.optimizer.rules.logical.HoistRemoteEnrichTopNTests
496493
method: testTopNSortExpressionWithinRemoteEnrichAliasing
497494
issue: https://github.com/elastic/elasticsearch/issues/136957

x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/sparse_vector_search.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ teardown:
9999
Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser
100100
Content-Type: application/json
101101
indices.delete:
102-
index: ["sparse_vector_pruning_test", "test-sparse-vector-without-pruning", "test-sparse-vector-with-pruning"]
102+
index: [ "index-with-sparse-vector", "sparse_vector_pruning_test", "test-sparse-vector-without-pruning", "test-sparse-vector-with-pruning", "test-sparse-vector-pruning-default" ]
103103
ignore: 404
104104
- do:
105105
headers:

0 commit comments

Comments
 (0)