Skip to content

Commit 256b1cb

Browse files
Fix the test failure in dense and sparse vectors (#39313)
Create index with only 1 shard to ensure an expected request failure Closes #39218
1 parent ead14a8 commit 256b1cb

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

modules/mapper-extras/src/test/resources/rest-api-spec/test/dense-vector/20_special_cases.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ setup:
1111
body:
1212
settings:
1313
number_of_replicas: 0
14+
# we need to have 1 shard to get request failure in test "Dense vectors should error with sparse vector functions"
15+
number_of_shards: 1
1416
mappings:
1517
properties:
1618
my_dense_vector:
@@ -125,10 +127,6 @@ setup:
125127
---
126128
"Dense vectors should error with sparse vector functions":
127129

128-
- skip:
129-
version: "all"
130-
reason: "awaits fix in #39218"
131-
132130
- do:
133131
index:
134132
index: test-index

modules/mapper-extras/src/test/resources/rest-api-spec/test/sparse-vector/20_special_cases.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ setup:
1111
body:
1212
settings:
1313
number_of_replicas: 0
14+
# we need to have 1 shard to get request failure in test "Sparse vectors should error with dense vector functions"
15+
number_of_shards: 1
1416
mappings:
1517
properties:
1618
my_sparse_vector:
@@ -176,10 +178,6 @@ setup:
176178
---
177179
"Sparse vectors should error with dense vector functions":
178180

179-
- skip:
180-
version: "all"
181-
reason: "awaits fix in #39218"
182-
183181
- do:
184182
index:
185183
index: test-index

0 commit comments

Comments
 (0)