Skip to content

[Regresion] Test Failure: System.Net.WebSockets.Client.Tests.CancelTest / CloseAsync_Cancel_Success #25070

Closed

Description

@caesar-chen

System.Net.WebSockets.Client.Tests.CancelTest/CloseAsync_Cancel_Success(server: ws://corefx-net.cloudapp.net/WebSocket/EchoWebSocket.ashx)

Assert.Equal() Failure
              ↓ (pos 4)
Expected: The 'System.Net.WebSockets.InternalClientWebS···
Actual:   The remote party closed the WebSocket connect···
              ↑ (pos 4)
at System.Net.WebSockets.Client.Tests.ClientWebSocketTestBase.TestCancellation(Func`2 action, Uri server) in D:\j\workspace\windows-TGrou---6368dffa\src\System.Net.WebSockets.Client\tests\ClientWebSocketTestBase.cs:line 81
   at System.Net.WebSockets.Client.Tests.CancelTest.CloseAsync_Cancel_Success(Uri server) in D:\j\workspace\windows-TGrou---6368dffa\src\System.Net.WebSockets.Client\tests\CancelTest.cs:line 80
--- End of stack trace from previous location where exception was thrown ---

Consistent repro on Windows.

Different from: #23038

Failure history

Build OS
20180214.01 2x OSX10.12 & 2x OSX10.13
20180214.02 4x Win10 & 2x Win7 & 2x OSX10.12 & 2x OSX10.13
20180215.01 10x Win10 & 4x Win8.1 & 2x OSX10.12 & 2x OSX10.13
20180215.04 10x Win10 & 2x Win8.1 & 4x Win7 & 2x OSX10.12 & 2x OSX10.13
20180216.01 5x Win10 & Win8.1 & OSX10.12 & OSX10.13
20180216.03 4x Win10 & 2x Win7 & Win8.1 & OSX10.12 & OSX10.13

Activity

  1. changed the title [-]Test Failure: System.Net.WebSockets.Client.Tests.CancelTest/CloseAsync_Cancel_Success failed with "Xunit.Sdk.EqualException"[/-] [+][Regresion] Test Failure: System.Net.WebSockets.Client.Tests.CancelTest / CloseAsync_Cancel_Success[/+] on Mar 26, 2018
  2. karelz commented on Mar 26, 2018

    @karelz
    Member

    Disabled in dotnet/corefx#27181 - @Caesar1995 why did you disable the tests? Should we look deeper into them for 2.1?

  3. caesar-chen commented on Mar 26, 2018

    @caesar-chen
    ContributorAuthor

    I disable the test because I saw consistent failure in CI.

    Should we look deeper into them for 2.1?

    I'll take a look.

  4. self-assigned this
    on Mar 26, 2018
  5. caesar-chen commented on Mar 27, 2018

    @caesar-chen
    ContributorAuthor

    Have run the test 500 times locally, no failure. The test didn't fail in CI in my test PR dotnet/corefx#28481.

    The test is that, a ClientWebSocket connects to a external server, send some data, then close the connection. We expect client side initiates the close or transfers into the invalid state first (since we explicitly calls cws.CloseAsync); however, we get the "remote party close the WebSocket connection" (server closes the connection).

    Don't understand root cause yet, probably some network race condition. Since a remote server is used, and no failure before 20180214, likely a external server problem. Will enable the test.

  6. transferred this issue fromdotnet/corefxon Jan 31, 2020
  7. added this to the 2.1.0 milestone on Jan 31, 2020
  8. ghost locked as resolved and limited conversation to collaborators on Dec 18, 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.Netdisabled-test

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions