-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[HTTP] H/3 fix test closing server connection prematurely #117458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Tagging subscribers to this area: @dotnet/ncl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR instruments existing HTTP handler tests with console output to help diagnose CI test failures.
- Adds
Console.WriteLine
in the test base to log ignored exceptions. - Adds
Console.WriteLine
in a specific test to log the caught client exception.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTestBase.cs | Added console logging for ignored exceptions in the base test helper |
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs | Added console logging for the exception thrown by client.SendAsync |
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTestBase.cs
Outdated
Show resolved
Hide resolved
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs
Outdated
Show resolved
Hide resolved
/azp run runtime |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run runtime |
Azure Pipelines successfully started running 1 pipeline(s). |
f901ed1
to
08d0bcd
Compare
src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
ccaf881
to
6a8f216
Compare
Adds more synchronization into the test so that the server doesn't close before the client can observe the expected exception.
Fixes #117198