Skip to content

Prevent race condition in ConnectSucceeds WS unit test#14405

Merged
JunielKatarn merged 3 commits into
microsoft:mainfrom
jurocha-ms:OC/9077496/fixutest
Mar 7, 2025
Merged

Prevent race condition in ConnectSucceeds WS unit test#14405
JunielKatarn merged 3 commits into
microsoft:mainfrom
jurocha-ms:OC/9077496/fixutest

Conversation

@JunielKatarn
Copy link
Copy Markdown
Contributor

@JunielKatarn JunielKatarn commented Mar 7, 2025

Description

Fix unstable test Microsoft::React::Test::WinRTWebSocketResourceUnitTest::ConnectSucceeds

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

The addressed test fails intermittently on CI runs.

What

Drain/synchronize test DispatchQueue used to emulate the calling thread.

Microsoft Reviewers: Open in CodeFlow

@JunielKatarn JunielKatarn requested review from a team as code owners March 7, 2025 06:36
@JunielKatarn JunielKatarn enabled auto-merge (squash) March 7, 2025 23:08
@JunielKatarn JunielKatarn merged commit 1ebf0e8 into microsoft:main Mar 7, 2025
@JunielKatarn JunielKatarn deleted the OC/9077496/fixutest branch March 7, 2025 23:13
JunielKatarn added a commit to jurocha-ms/react-native-windows that referenced this pull request Mar 7, 2025
* Prevent race condition in ConnectSucceeds

* Change files
JunielKatarn added a commit to jurocha-ms/react-native-windows that referenced this pull request Mar 7, 2025
* Prevent race condition in ConnectSucceeds

* Change files
JunielKatarn added a commit to jurocha-ms/react-native-windows that referenced this pull request Mar 7, 2025
* Prevent race condition in ConnectSucceeds

* Change files
JunielKatarn added a commit to jurocha-ms/react-native-windows that referenced this pull request Mar 7, 2025
* Prevent race condition in ConnectSucceeds

* Change files
JunielKatarn added a commit to jurocha-ms/react-native-windows that referenced this pull request Mar 7, 2025
* Prevent race condition in ConnectSucceeds

* Change files
JunielKatarn added a commit that referenced this pull request Mar 8, 2025
* Refactor WebSocket resource class (#14377)

* Update Test Website JSON dependencies to .NET 8

* Implement WinRTWebSocketResource2

* Add /rnw/websockets/pong endpoint

* Add /rnw/websockets/echo endpoint

* Add WebSocketMultipleSendTest.js

* Allow arbitrary incoming size in server-side WebSocketTest

* Define runtime option WebSocket.ResourceV2

* Centralize ReceiveStringAsync in shared class WebSocketUtils

* Implement WebSocketMultipleSendTest_ClientReceive

* Prevent high CPU usage caused by WebSockets (test website)

* Allows passing an explicit calling context to execute resource handlers
(i.e. JavaScript queue / main queue).

* Change files

* Prevent race condition in ConnectSucceeds WS unit test (#14405)

* Prevent race condition in ConnectSucceeds

* Change files

* Remove change file
JunielKatarn added a commit that referenced this pull request Mar 10, 2025
* Refactor WebSocket resource class (#14377)

* Update Test Website JSON dependencies to .NET 8

* Implement WinRTWebSocketResource2

* Add /rnw/websockets/pong endpoint

* Add /rnw/websockets/echo endpoint

* Add WebSocketMultipleSendTest.js

* Allow arbitrary incoming size in server-side WebSocketTest

* Define runtime option WebSocket.ResourceV2

* Centralize ReceiveStringAsync in shared class WebSocketUtils

* Implement WebSocketMultipleSendTest_ClientReceive

* Prevent high CPU usage caused by WebSockets (test website)

* Allows passing an explicit calling context to execute resource handlers
(i.e. JavaScript queue / main queue).

* Change files

* Prevent race condition in ConnectSucceeds WS unit test (#14405)

* Prevent race condition in ConnectSucceeds

* Change files

* Remove change file
JunielKatarn added a commit that referenced this pull request Mar 10, 2025
* Prevent race condition in ConnectSucceeds WS unit test (#14405)

* Prevent race condition in ConnectSucceeds

* Change files

* Remove change file

* Change files
JunielKatarn added a commit that referenced this pull request Mar 10, 2025
* Refactor WebSocket resource class (#14377)

* Update Test Website JSON dependencies to .NET 8

* Implement WinRTWebSocketResource2

* Add /rnw/websockets/pong endpoint

* Add /rnw/websockets/echo endpoint

* Add WebSocketMultipleSendTest.js

* Allow arbitrary incoming size in server-side WebSocketTest

* Define runtime option WebSocket.ResourceV2

* Centralize ReceiveStringAsync in shared class WebSocketUtils

* Implement WebSocketMultipleSendTest_ClientReceive

* Prevent high CPU usage caused by WebSockets (test website)

* Allows passing an explicit calling context to execute resource handlers
(i.e. JavaScript queue / main queue).

* Change files

* Prevent race condition in ConnectSucceeds WS unit test (#14405)

* Prevent race condition in ConnectSucceeds

* Change files

* Remove change file
JunielKatarn added a commit that referenced this pull request Mar 10, 2025
* Refactor WebSocket resource class (#14377)

* Update Test Website JSON dependencies to .NET 8

* Implement WinRTWebSocketResource2

* Add /rnw/websockets/pong endpoint

* Add /rnw/websockets/echo endpoint

* Add WebSocketMultipleSendTest.js

* Allow arbitrary incoming size in server-side WebSocketTest

* Define runtime option WebSocket.ResourceV2

* Centralize ReceiveStringAsync in shared class WebSocketUtils

* Implement WebSocketMultipleSendTest_ClientReceive

* Prevent high CPU usage caused by WebSockets (test website)

* Allows passing an explicit calling context to execute resource handlers
(i.e. JavaScript queue / main queue).

* Change files

* Prevent race condition in ConnectSucceeds WS unit test (#14405)

* Prevent race condition in ConnectSucceeds

* Change files

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants