Skip to content

Commit

Permalink
Do not test sockets handler fix on WinHttpHandler. (#40070)
Browse files Browse the repository at this point in the history
  • Loading branch information
ManickaP authored Jul 29, 2020
1 parent e10da01 commit 9df596f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@ await server.AcceptConnectionAsync(async connection =>
[Fact]
public async Task SendAsync_Expect100Continue_RequestBodyFails_ThrowsContentException()
{
if (IsWinHttpHandler && UseVersion >= HttpVersion20.Value)
if (IsWinHttpHandler)
{
return;
}
Expand All @@ -2137,7 +2137,7 @@ await LoopbackServerFactory.CreateClientAndServerAsync(async uri =>
HttpRequestMessage initialMessage = new HttpRequestMessage(HttpMethod.Post, uri) { Version = UseVersion };
initialMessage.Content = new ThrowingContent(() => new ThrowingContentException());
initialMessage.Headers.ExpectContinue = true;
Exception exception = await Assert.ThrowsAsync<ThrowingContentException>(() => client.SendAsync(TestAsync, initialMessage));
await Assert.ThrowsAsync<ThrowingContentException>(() => client.SendAsync(TestAsync, initialMessage));

clientFinished.SetResult(true);
}
Expand Down

0 comments on commit 9df596f

Please sign in to comment.