Skip to content

[Desktop] Test failed: System.Net.WebSockets.Client.Tests.CancelTest / ReceiveAsync_ReceiveThenCancel_ThrowsOperationCanceledException #22936

Closed
dotnet/corefx
#37271

Description

Opened on behalf of @JiayiLi1

The test System.Net.WebSockets.Client.Tests.CancelTest/ReceiveAsync_ReceiveThenCancel_ThrowsOperationCanceledException(server: wss://corefx-net.cloudapp.net/WebSocket/EchoWebSocket.ashx) has failed.

Assert.Throws() Failure\r
Expected: typeof(System.OperationCanceledException)\r
Actual: typeof(System.InvalidOperationException): This operation is only allowed using a successfully authenticated context.

    Stack Trace:

       at System.Net.Security.SslState.CheckThrow(Boolean authSuccessCheck, Boolean shutdownCheck)
   at System.Net.Security.SslState.get_SecureStream()
   at System.Net.TlsStream.EndRead(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncTrimPromise`1.Complete(TInstance thisRef, Func`3 endMethod, IAsyncResult asyncResult, 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.WebSockets.WebSocketConnectionStream.<ReadAsync>d__21.MoveNext()
--- 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.WebSockets.WebSocketBase.WebSocketOperation.<Process>d__19.MoveNext()
--- 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.WebSockets.WebSocketBase.<ReceiveAsyncCore>d__45.MoveNext()
--- 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 - 20170726.01 (Full Framework Tests)
Failing configurations:

  • Windows.10.Amd64.Core-x64
    • Debug

Detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fdesktop~2Fcli~2F/build/20170726.01/workItem/System.Net.WebSockets.Client.Tests/analysis/xunit/System.Net.WebSockets.Client.Tests.CancelTest~2FReceiveAsync_ReceiveThenCancel_ThrowsOperationCanceledException(server:%20wss:~2F~2Fcorefx-net.cloudapp.net~2FWebSocket~2FEchoWebSocket.ashx)

Activity

  1. changed the title [-]Test: System.Net.WebSockets.Client.Tests.CancelTest/ReceiveAsync_ReceiveThenCancel_ThrowsOperationCanceledException failed with "System.InvalidOperationException"[/-] [+][Desktop] Test failed: System.Net.WebSockets.Client.Tests.CancelTest / ReceiveAsync_ReceiveThenCancel_ThrowsOperationCanceledException[/+] on Jan 19, 2018
  2. self-assigned this
    on Apr 29, 2019
  3. added a commit that references this issue on Apr 29, 2019
  4. transferred this issue fromdotnet/corefxon Jan 31, 2020
  5. added this to the 3.0 milestone on Jan 31, 2020
  6. ghost locked as resolved and limited conversation to collaborators on Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Nettest-run-desktop

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions