-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-System.Net.Httpin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged
Milestone
Description
This on my Windows 10 21H2 machine. I'm guessing I have some particular setting in my registry or something - let me know if I can check for something.
All other tests pass.
C:\git\runtime>dotnet build /t:test src\libraries\System.Net.Http.WinHttpHandler\tests\FunctionalTests /p:xunitoptions="-method System.Net.Http.Functional.Tests.HttpClientHandler_RemoteServerTest.SendAsync_RequestVersion20_ResponseVersion20"
....
----- start Wed 07/27/2022 13:39:37.32 =============== To repro directly: ==========================================
===========
pushd C:\git\runtime\artifacts\bin\System.Net.Http.WinHttpHandler.Functional.Tests\Debug\net7.0-windows\
"C:\git\runtime\artifacts\bin\testhost\net7.0-windows-Debug-x64\dotnet.exe" exec --runtimeconfig System.Net.Http.WinHttpHandler.Functional.Tests.runtimeconfig.json --depsfile System.Net.Http.WinHttpHandler.Functional.Tests.deps.json xunit.console.dll System.Net.Http.WinHttpHandler.Functional.Tests.dll -xml testResults.xml -nologo -notrait category=failing -method System.Net.Http.Functional.Tests.HttpClientHandler_RemoteServerTest.SendAsync_RequestVersion20_ResponseVersion20
popd
===========================================================================================================
Discovering: System.Net.Http.WinHttpHandler.Functional.Tests (method display = ClassAndMethod, method display optio
ns = None)
Discovered: System.Net.Http.WinHttpHandler.Functional.Tests (found 1 of 525 test case)
Starting: System.Net.Http.WinHttpHandler.Functional.Tests (parallel test collections = on, max threads = 8)
System.Net.Http.Functional.Tests.HttpClientHandler_RemoteServerTest.SendAsync_RequestVersion20_ResponseVersion20(
server: https://www.microsoft.com/) [FAIL]
Assert.Equal() Failure
Expected: OK
Actual: Forbidden
Stack Trace:
C:\git\runtime\src\libraries\Common\tests\System\Net\Http\HttpClientHandlerTest.RemoteServer.cs(1369,0): at S
ystem.Net.Http.Functional.Tests.HttpClientHandler_RemoteServerTest.SendAsync_RequestVersion20_ResponseVersion20(Uri s
erver)
--- End of stack trace from previous location ---
Output:
https://www.microsoft.com/
Finished: System.Net.Http.WinHttpHandler.Functional.Tests
=== TEST EXECUTION SUMMARY ===
System.Net.Http.WinHttpHandler.Functional.Tests Total: 1, Errors: 0, Failed: 1, Skipped: 0, Time: 0.810s
Metadata
Metadata
Assignees
Labels
area-System.Net.Httpin-prThere is an active PR which will close this issue when it is mergedThere is an active PR which will close this issue when it is merged