Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Potential null ref fix when instance discovery fails #1612

Merged
merged 2 commits into from
Jun 7, 2019
Merged

Conversation

bgavrilMS
Copy link
Member

Potential fix and more logging for #1610

@bgavrilMS bgavrilMS requested review from MarkZuber and jennyf19 June 6, 2019 21:18
@@ -46,6 +47,52 @@ public void Initialize()
InstanceDiscovery.InstanceCache.Clear();
}

[TestMethod]
public async Task Double504Async()
Copy link
Member Author

Choose a reason for hiding this comment

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

Sadly this test, as well as repeated attempts to repro this with Fiddler AutoResponder, fail to repro the issue.

@@ -101,7 +101,8 @@ internal virtual HttpClient GetHttpClient()

private HttpRequestMessage CreateRequestMessage(Uri endpoint, IDictionary<string, string> headers)
{
HttpRequestMessage requestMessage = new HttpRequestMessage { RequestUri = endpoint };
HttpRequestMessage requestMessage = new HttpRequestMessage {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: please fix formatting, no { on same line.

Copy link
Contributor

@henrik-me henrik-me left a comment

Choose a reason for hiding this comment

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

:shipit:

@bgavrilMS bgavrilMS merged commit c27dd37 into dev Jun 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants