Repository navigation
Fix flaky HTTP/3 request trailer validation test - #69246
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
No unresolved review issues were identified.
Review tier: Lite
Findings: None
What changed in this PR
Fixes a flaky HTTP/3 request trailer validation test by keeping request processing active while invalid trailers are parsed.
Changes:
- Replaces
_noopApplicationwith_echoApplication. - Prevents the response from completing before trailer validation.
| File | Description |
|---|---|
src/Servers/Kestrel/test/InMemory.FunctionalTests/Http3/Http3StreamTests.cs |
Keeps request processing active during invalid trailer validation. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
wtgodbe
approved these changes
Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix flaky HTTP/3 request trailer validation test
Keep the request application active while invalid HTTP/3 trailers are parsed.
Description
RequestTrailers_ContainsNewlinesused the no-op application, which could complete the response before the request trailers were parsed.WaitForStreamErrorAsynccould then observe the completed response stream beforeMessageErrorwas assigned and fail with an error code of-1.Use the echo application so it continues reading the request body while the trailers are processed. This keeps the test synchronized with the real request-processing path without changing the shared HTTP/3 test helper.
Fixes: #69224