Repository navigation
Stabilize old protocol stateful reconnect test - #70288
BrennanConroy wants to merge 1 commit into
Conversation
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
The required frozen source-and-guidance review bundle was not supplied, preventing verification of revision-bound contracts and independent guide review.
No open issues 🎉
What changed in this PR
Stabilizes the SignalR C# client’s old-protocol reconnect test for #67344 by ensuring an invocation is active before closing the WebSocket.
Changes:
- Adds a test hub method that signals invocation startup and waits for connection cancellation.
- Waits for that signal before disposing the socket, preserving the quarantine and existing exception and disconnected-state assertions.
| File | Description |
|---|---|
| src/SignalR/clients/csharp/Client/test/FunctionalTests/Hubs.cs | Adds the invocation-start signal and cancellation-wait helper. |
| src/SignalR/clients/csharp/Client/test/FunctionalTests/HubConnectionTests.cs | Synchronizes socket disposal with invocation startup to avoid the race. |
Review effort: Balanced
|
/review |
|
/azp run aspnetcore-components-e2e 🤖 Posted by Flaky (AI Agent) |
|
No pipelines are associated with this pull request. |
|
Flaky stopped after GitHub denied permission to re-request the unrelated Azure Pipelines check suite. 🤖 Posted by Flaky (AI Agent) |
|
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
Stabilizes the old-protocol stateful reconnect functional test
Description
The test disposed its WebSocket before starting the invocation it expected to be canceled. If the receive loop observed closure first, the invocation instead faulted with
InvalidOperationException, producing the intermittentAssert.Truefailure.Add a test hub method that signals when its invocation is active and then waits for connection cancellation. The test now closes the socket only after that signal, preserving the quarantine and the existing exception and disconnected-state assertions.
Issue: #67344
🤖 Posted by Flaky (AI Agent)