Commit c3e5daa
committed
Fix KnnSearchBuilderTests#testEqualsAndHashcode failures
The KnnSearchBuilder constructor validates that k is always less than num_cands.
But the mutateInstance method could increase k past num_cands. Now we construct
the instance with a larger num_cands to make sure this never happens.
Closes #88734.1 parent f284cc1 commit c3e5daa
File tree
1 file changed
+1
-1
lines changed- server/src/test/java/org/elasticsearch/search/vectors
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments