Skip to content
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

diagnose: always use IHttpClientFactory for diagnose #942

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

mjcheetham
Copy link
Collaborator

The Network diagnostic currently makes two passes of the tests, one using a 'raw' HttpClient and another using one created by the product HttpClientFactory.

However, we've not actually been using the factory-built client in the tests! Furthermore, the raw HTTP client will not exercise test correctly if the machine is behind a corporate proxy, so let's just drop that option.

Fixes #927

The Network diagnostic currently makes two passes of the tests, one
using a 'raw' `HttpClient` and another using one created by the product
`HttpClientFactory`.

However, we've not actually been using the factory-built client in the
tests! Furthermore, the raw HTTP client will not exercise test correctly
if the machine is behind a corporate proxy, so let's just drop that
option.
@mjcheetham mjcheetham added the network Related to networking (VPN, TCP/IP, etc) label Nov 3, 2022
Copy link
Contributor

@ldennington ldennington left a comment

Choose a reason for hiding this comment

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

Nice cleanup!

@ldennington ldennington merged commit 8988107 into git-ecosystem:main Nov 3, 2022
@mjcheetham mjcheetham deleted the fix-netdiag branch November 3, 2022 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
network Related to networking (VPN, TCP/IP, etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Command "git credential-manager-core diagnose" fails Networking diagnostic when used with NTLM proxy
2 participants