Skip to content

Test: System.Net.Http.Functional.Tests.ManagedHandler_HttpClientHandler_ServerCertificates_Test/UseCallback_ValidCertificate_ExpectedValuesDuringCallback failed with "Xunit.Sdk.EqualException" #22644

@ghost

Description

Opened on behalf of @JiayiLi1

The test System.Net.Http.Functional.Tests.ManagedHandler_HttpClientHandler_ServerCertificates_Test/UseCallback_ValidCertificate_ExpectedValuesDuringCallback(url: https://corefx-net.cloudapp.net/Echo.as... has failed.

Assert.Equal() Failure
Expected: None
Actual: RemoteCertificateChainErrors

    Stack Trace:

       at System.Net.Http.Functional.Tests.HttpClientHandler_ServerCertificates_Test.<>c__DisplayClass4_0.<UseCallback_ValidCertificate_ExpectedValuesDuringCallback>b__0(HttpRequestMessage request, X509Certificate2 cert, X509Chain chain, SslPolicyErrors errors) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.ServerCertificates.cs:line 132
   at System.Net.Security.SecureChannel.VerifyRemoteCertificate(RemoteCertValidationCallback remoteCertValidationCallback, ProtocolToken& alertToken) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SecureChannel.cs:line 1036
   at System.Net.Security.SslState.CompleteHandshake(ProtocolToken& alertToken) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SslState.cs:line 1022
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SslState.cs:line 817
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SslState.cs:line 801
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SslState.cs:line 970
   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SslState.cs:line 873
   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SslState.cs:line 830
   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SslState.cs:line 801
   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SslState.cs:line 970
   at System.Net.Security.SslState.PartialFrameCallback(AsyncProtocolRequest asyncRequest) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SslState.cs:line 1102
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result) in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Security/src/System/Net/Security/SslState.cs:line 720
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Http.HttpConnectionHandler.<EstablishSslConnection>d__9.MoveNext() in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Http/src/System/Net/Http/Managed/HttpConnectionHandler.cs:line 89
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult() in /Users/buildagent/agent/_work/48/s/corefx/src/System.Threading.Tasks.Extensions/src/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs:line 61
   at System.Net.Http.HttpConnectionHandler.<CreateConnection>d__10.MoveNext() in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Http/src/System/Net/Http/Managed/HttpConnectionHandler.cs:line 105
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult() in /Users/buildagent/agent/_work/48/s/corefx/src/System.Threading.Tasks.Extensions/src/System/Runtime/CompilerServices/ConfiguredValueTaskAwaitable.cs:line 61
   at System.Net.Http.HttpConnectionHandler.<SendAsyncWithNewConnection>d__8.MoveNext() in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Http/src/System/Net/Http/Managed/HttpConnectionHandler.cs:line 59
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Http.CookieHandler.<SendAsync>d__3.MoveNext() in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Http/src/System/Net/Http/Managed/CookieHandler.cs:line 31
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Http.AutoRedirectHandler.<SendAsync>d__3.MoveNext() in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Http/src/System/Net/Http/Managed/AutoRedirectHandler.cs:line 28
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext() in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 464
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Net.Http.Functional.Tests.HttpClientHandler_ServerCertificates_Test.<UseCallback_ValidCertificate_ExpectedValuesDuringCallback>d__4.MoveNext() in /Users/buildagent/agent/_work/48/s/corefx/src/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.ServerCertificates.cs:line 138
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Build : Master - 20170706.01 (Core Tests)
Failing configurations:

  • OSX.1012.Amd64-x64
    • Release

Detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20170706.01/workItem/System.Net.Http.Functional.Tests/analysis/xunit/System.Net.Http.Functional.Tests.ManagedHandler_HttpClientHandler_ServerCertificates_Test~2FUseCallback_ValidCertificate_ExpectedValuesDuringCallback(url:%20https:~2F~2Fcorefx-net.cloudapp.net~2FEcho.as...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions