Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing AsyncStatusResponseTests#testGetStatusFromStoredSearchWithNonEmptyClustersStillRunning #100812

Merged
merged 1 commit into from
Oct 13, 2023

Conversation

pmpailis
Copy link
Contributor

The issue with the failing test was that we're having an assertion within the test suite that relies on 3 randomly generated integers. The assertion states that the sum should be a strictly positive number, whereas the integers are drawn from the [0, 10] range.

Since this seems to be only test-related, and IIUC is not an actual issue that we might have to deal with, in this PR we are adding small variance to one of the int variables in case all of them are 0 (+unmuting the test itself).

Closes #98706

…hin testGetStatusFromStoredSearchWithNonEmptyClustersStillRunning to pass the needed test assertion
@pmpailis pmpailis requested a review from quux00 October 13, 2023 09:50
@pmpailis pmpailis added >test Issues or PRs that are addressing/adding tests :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team labels Oct 13, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

Copy link
Contributor

@romseygeek romseygeek left a comment

Choose a reason for hiding this comment

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

LGTM

@pmpailis pmpailis added the auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Oct 13, 2023
@elasticsearchmachine elasticsearchmachine merged commit a295e7a into elastic:main Oct 13, 2023
12 checks passed
@pmpailis pmpailis deleted the fix/98706 branch October 13, 2023 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team >test Issues or PRs that are addressing/adding tests v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] AsyncStatusResponseTests testGetStatusFromStoredSearchWithNonEmptyClustersStillRunning failing
3 participants