Skip to content

[9.1](backport #45127) [oteltest][fbreceiver] Fix flaky test #45136

Merged
VihasMakwana merged 1 commit into9.1from
mergify/bp/9.1/pr-45127
Jul 2, 2025
Merged

[9.1](backport #45127) [oteltest][fbreceiver] Fix flaky test #45136
VihasMakwana merged 1 commit into9.1from
mergify/bp/9.1/pr-45127

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented Jul 1, 2025

In our otelbeat's test cases, we use require.EventuallyWithT to test certain conditions which are satisfied after some time. For eg. status reporter.
While asserting conditions, we should pass *assert.CollectT variable and not the parent testing.T. Passing the parent variable will lead to instant failure because of the underlying logic of EventuallyWithT.

Closes #45057


This is an automatic backport of pull request #45127 done by [Mergify](https://mergify.com).

* skip TestReceiverDegraded

* typo

* commit

* replace require.EventuallyWithT

(cherry picked from commit dd5cbac)
@mergify mergify Bot added the backport label Jul 1, 2025
@mergify mergify Bot requested a review from a team as a code owner July 1, 2025 15:58
@mergify mergify Bot requested review from khushijain21 and leehinman and removed request for a team July 1, 2025 15:58
@botelastic botelastic Bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jul 1, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 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!)

@github-actions github-actions Bot added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Jul 1, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane)

@botelastic botelastic Bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jul 1, 2025
@VihasMakwana VihasMakwana merged commit 0eef327 into 9.1 Jul 2, 2025
204 checks passed
@VihasMakwana VihasMakwana deleted the mergify/bp/9.1/pr-45127 branch July 2, 2025 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants