Skip to content

Fix flaky test TestReaderOptsWithoutResolve#284

Merged
pierrehilbert merged 1 commit intoelastic:mainfrom
belimawr:fix-flaky-test-TestReaderOptsWithoutResolve
Feb 12, 2026
Merged

Fix flaky test TestReaderOptsWithoutResolve#284
pierrehilbert merged 1 commit intoelastic:mainfrom
belimawr:fix-flaky-test-TestReaderOptsWithoutResolve

Conversation

@belimawr
Copy link
Copy Markdown
Contributor

What does this PR do?

Fix flakiness from TestReaderOptsWithoutResolve by using a negative value as PID. This should cause reader.CgroupsVersion to always error.

Why is it important?

It fixes a flaky test

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.md

## Author's Checklist

Related issues

Fix flakiness from TestReaderOptsWithoutResolve by using a negative
value as PID. This should cause reader.CgroupsVersion to always error.
@belimawr belimawr requested a review from a team as a code owner February 11, 2026 23:05
@belimawr belimawr requested review from AndersonQ and mauri870 and removed request for a team February 11, 2026 23:05
@belimawr belimawr self-assigned this Feb 11, 2026
@belimawr belimawr added the Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team label Feb 11, 2026
@pierrehilbert pierrehilbert merged commit 243a494 into elastic:main Feb 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

[Flay Test] TestReaderOptsWithoutResolve is flaky: expected error, got: 2

3 participants