Skip to content

[wasm] System.Net.WebSockets.Client.Tests.CloseTest.CloseOutputAsync_ClientInitiated_CanReceive_CanClose failing on browser #65796

Description

@radical

Hit on #65752 (unrelated PR).
Build, and log:

[18:43:39] info: Discovering: System.Net.WebSockets.Client.Tests.dll (method display = ClassAndMethod, method display options = None)
[18:43:39] info: Discovered:  System.Net.WebSockets.Client.Tests.dll (found 60 of 87 test cases)
[18:43:39] info: Using random seed for test cases: 808720396
[18:43:39] info: Using random seed for collections: 808720396
[18:43:39] info: Starting:    System.Net.WebSockets.Client.Tests.dll
[18:43:39] fail: [out of order message from the browser]: http://127.0.0.1:49168/dotnet.js 2 WebSocket connection to 'ws://127.0.0.1:49168/WebSocket/EchoWebSocket.ashx?subprotocol=CustomProtocol' failed: Error during WebSocket handshake: Response must not include 'Sec-WebSocket-Protocol' header if not present in request: CustomProtocol
[18:43:39] fail: [out of order message from the browser]: http://127.0.0.1:49168/dotnet.js 2 WebSocket connection to 'wss://127.0.0.1:49169/WebSocket/EchoWebSocket.ashx?subprotocol=CustomProtocol' failed: Error during WebSocket handshake: Response must not include 'Sec-WebSocket-Protocol' header if not present in request: CustomProtocol
[18:43:40] fail: [out of order message from the browser]: http://127.0.0.1:49168/dotnet.js 2 WebSocket connection to 'ws://127.0.0.1:49186/' failed: Connection closed before receiving a handshake response
[18:43:42] fail: [out of order message from the browser]: http://127.0.0.1:49168/dotnet.js 2 WebSocket connection to 'ws://bf8a6a8eb73143a0ab2f9fea8dba8dca/' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED
[18:43:50] warn: WARNING: Web browsers do not support closing the output side of a WebSocket. CloseOutputAsync has closed the socket and discarded any incoming messages.
[18:45:15] fail: [FAIL] System.Net.WebSockets.Client.Tests.CloseTest.CloseOutputAsync_ClientInitiated_CanReceive_CanClose(server: wss://127.0.0.1:49169/WebSocket/EchoWebSocket.ashx)
[18:45:15] info: Assert.Equal() Failure
[18:45:15] info: Expected: 17
[18:45:15] info: Actual:   0
[18:45:15] info:    at System.Net.WebSockets.Client.Tests.CloseTest.CloseOutputAsync_ClientInitiated_CanReceive_CanClose(Uri server)
[18:45:16] info: --- End of stack trace from previous location ---
[18:46:20] info: http://127.0.0.1:49168/dotnet.js 2 WebSocket connection to 'ws://127.0.0.1:49168/WebSocket/EchoWebSocket.ashx?delay10sec' failed: WebSocket is closed before the connection is established.
[18:46:20] info: http://127.0.0.1:49168/dotnet.js 2 WebSocket connection to 'wss://127.0.0.1:49169/WebSocket/EchoWebSocket.ashx?delay10sec' failed: WebSocket is closed before the connection is established.
[18:46:20] info: Finished:    System.Net.WebSockets.Client.Tests.dll

cc @pavelsavara

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions