Skip to content

Conversation

xrmx
Copy link
Member

@xrmx xrmx commented Aug 1, 2025

What does this pull request do?

Update test_send_remote_failover_sync_non_transport_exception_error to remove some flakyness:

  • use a custom transport class instead of mocking it because sometime the send method won't get mocked :O
  • then before asserting the transport state give it a bit more slack time to the queue to process and flush the data
  • Finally retry the check of the stat for the send without error to give the queue enough time to process it

Related issues

Closes #2364

Update test_send_remote_failover_sync_non_transport_exception_error to
remove some flakyness:
- use a custom transport class instead of mocking it because *sometime*
  the send method won't get mocked :O
- then before asserting the transport state give it a bit more slack
  time to the queue to process and flush the data
- Finally retry the check of the stat for the send without error to
  give the queue enough time to process it
@xrmx xrmx requested a review from a team as a code owner August 1, 2025 13:52
Copy link

github-actions bot commented Aug 1, 2025

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@xrmx xrmx changed the title tests: rremove some flakyness from client tests tests: remove some flakyness from client tests Aug 1, 2025
Copy link
Member Author

@xrmx xrmx left a comment

Choose a reason for hiding this comment

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

/test matrix

@basepi
Copy link
Contributor

basepi commented Aug 1, 2025

These tests have always been a bit annoying. Hopefully this helps!

@xrmx xrmx merged commit 98351c1 into elastic:main Aug 2, 2025
555 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate client test failures in CI

2 participants