Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Dec 1, 2025

What does this PR do?

Updates TestContainerCMDAgentMonitoringRuntimeExperimental to use the assert.CollectT instead of the testing.T inside require.EventuallyWithT.

Why is it important?

Prevents the code from failing on the first pass of require.EventuallyWithT. Now it retries transient assertion errors up to the timeout.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Related issues


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

…timeExperimental (#11499)

Updates TestContainerCMDAgentMonitoringRuntimeExperimental to use the assert.CollectT instead of the testing.T inside require.EventuallyWithT.

This prevents the code from failing on the first pass of require.EventuallyWithT. Now it retries transient assertion errors up to the timeout.

(cherry picked from commit f32807c)
@mergify mergify bot added the backport label Dec 1, 2025
@mergify mergify bot requested a review from a team as a code owner December 1, 2025 19:44
@mergify mergify bot requested review from swiatekm and ycombinator and removed request for a team December 1, 2025 19:44
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

cc @mauri870

@pierrehilbert pierrehilbert merged commit 6a3e3e4 into 9.2 Dec 2, 2025
23 checks passed
@pierrehilbert pierrehilbert deleted the mergify/bp/9.2/pr-11499 branch December 2, 2025 07:59
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.

4 participants