Skip to content

Fix flaky test failure in HttpRequestBuffering_DoesNotBufferDisabledOrOversizedLogs (#7148)#7328

Closed
iamitprakash wants to merge 1 commit intodotnet:mainfrom
iamitprakash:fix/issue-7148-flaky-test
Closed

Fix flaky test failure in HttpRequestBuffering_DoesNotBufferDisabledOrOversizedLogs (#7148)#7328
iamitprakash wants to merge 1 commit intodotnet:mainfrom
iamitprakash:fix/issue-7148-flaky-test

Conversation

@iamitprakash
Copy link

@iamitprakash iamitprakash commented Feb 22, 2026

This PR fixes a flaky test failure in

HttpRequestBuffering_DoesNotBufferDisabledOrOversizedLogs
where the test occasionally received 7 logs instead of the expected 6.

Changes

Updated the assertion in

AcceptanceTests.cs
to explicitly filter for the log categories intended by the test case: Microsoft.AspNetCore.Routing.Matching.DfaMatcher, test, and logatrequest.
This prevents environmental noise or default HttpLoggingMiddleware logs from causing intermittent failures.
Fixes #7148

Microsoft Reviewers: Open in CodeFlow

@stephentoub
Copy link
Member

stephentoub commented Feb 22, 2026

Thanks, but there's already a pr for this at #7304...?

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.

HttpRequestBuffering_DoesNotBufferDisabledOrOversizedLogs failure in internal build

2 participants