Skip to content

Conversation

ManickaP
Copy link
Member

@ManickaP ManickaP commented Jul 9, 2025

Adds more synchronization into the test so that the server doesn't close before the client can observe the expected exception.

Fixes #117198

@Copilot Copilot AI review requested due to automatic review settings July 9, 2025 12:23
@ManickaP ManickaP added NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) NO-REVIEW Experimental/testing PR, do NOT review it labels Jul 9, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

@Copilot Copilot AI left a 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

@ManickaP
Copy link
Member Author

ManickaP commented Jul 9, 2025

/azp run runtime

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ManickaP
Copy link
Member Author

/azp run runtime

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ManickaP
Copy link
Member Author

/azp run runtime

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ManickaP ManickaP changed the title [HTTP] [NO-MERGE] Investigating CI test failure [HTTP] H/3 fix test closing server connection prematurely Jul 17, 2025
@ManickaP ManickaP removed NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) NO-REVIEW Experimental/testing PR, do NOT review it labels Jul 17, 2025
@ManickaP ManickaP requested a review from a team July 17, 2025 07:55
Copy link
Member

@CarnaViire CarnaViire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ManickaP ManickaP merged commit 4f82fe7 into dotnet:main Jul 18, 2025
83 of 87 checks passed
@ManickaP ManickaP deleted the test-header-fail branch July 18, 2025 10:52
@github-actions github-actions bot locked and limited conversation to collaborators Aug 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SendAsync_RequestWithDangerousControlHeaderValue_ThrowsHttpRequestException fails with QUIC protocol error
2 participants