Skip to content

Conversation

@dimitris-athanasiou
Copy link
Contributor

…Tests

When IndicesOptions are mutated, we may produce null. The request constructor sets indices options to the default ones when the argument is null. Thus, if the original instance had the default IndicesOptions to begin with, we will end up with a mutation that is identical.

This fixes this by generating a new random IndicesOptions object in the case above.

Closed #138134

…Tests

When `IndicesOptions` are mutated, we may produce `null`. The request constructor
sets indices options to the default ones when the argument is `null`.
Thus, if the original instance had the default `IndicesOptions` to begin with,
we will end up with a mutation that is identical.

This fixes this by generating a new random `IndicesOptions` object in the case above.

Closed elastic#138134
@dimitris-athanasiou dimitris-athanasiou added >test Issues or PRs that are addressing/adding tests :SearchOrg/Relevance Label for the Search (solution/org) Relevance team v9.3.0 labels Nov 17, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/search-relevance (Team:Search - Relevance)

@elasticsearchmachine elasticsearchmachine added the Team:Search - Relevance The Search organization Search Relevance team label Nov 17, 2025
Copy link
Contributor

@Mikep86 Mikep86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@dimitris-athanasiou dimitris-athanasiou merged commit f13ab6e into elastic:main Nov 17, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:SearchOrg/Relevance Label for the Search (solution/org) Relevance team Team:Search - Relevance The Search organization Search Relevance team >test Issues or PRs that are addressing/adding tests v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] GetInferenceFieldsActionRequestTests testEqualsAndHashcode failing

3 participants