Skip to content

Commit 3c253d1

Browse files
authored
Disable test ResponseHeadersRead_SynchronizationContextNotUsedByHandler for WinHttpHandler on Win7/Win81 (#56490)
Disable test ResponseHeadersRead_SynchronizationContextNotUsedByHandler for WinHttpHandler on Win7/Win81 Test types: - System.Net.Http.Functional.Tests.PlatformHandler_HttpClientHandler_Asynchrony_Test - System.Net.Http.Functional.Tests.PlatformHandler_HttpClientHandler_Asynchrony_Http2_Test Disabled test tracked by #54034
1 parent 742ea07 commit 3c253d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.Asynchrony.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ from contentMode in Enum.GetValues(typeof(LoopbackServer.ContentMode)).Cast<Loop
2626
[MemberData(nameof(ResponseHeadersRead_SynchronizationContextNotUsedByHandler_MemberData))]
2727
public async Task ResponseHeadersRead_SynchronizationContextNotUsedByHandler(bool responseHeadersRead, LoopbackServer.ContentMode contentMode)
2828
{
29+
if (IsWinHttpHandler && (PlatformDetection.IsWindows7 || PlatformDetection.IsWindows8x))
30+
{ // [ActiveIssue("https://github.com/dotnet/runtime/issues/54034")]
31+
return;
32+
}
33+
2934
await Task.Run(async delegate // escape xunit's sync ctx
3035
{
3136
await LoopbackServer.CreateClientAndServerAsync(uri =>

0 commit comments

Comments
 (0)