You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quarantines Microsoft.AspNetCore.SignalR.Client.Tests.TestServerTests.LongPollingWorks which has failed 2 times over the past 30 days in the aspnetcore-ci pipeline on main.
The test fails due to a race condition during teardown — System.ObjectDisposedException is thrown in OnDisconnectedAsync when the IServiceProvider is disposed before the SignalR hub finishes handling the disconnect event. This is the same class of failure as the already-quarantined sibling test WebSocketsWorks.
The bundle file is available in the agent artifact in the workflow run linked above.
To create a pull request with the changes:
# Download the artifact from the workflow run
gh run download 26765512340 -n agent -D /tmp/agent-26765512340
# Fetch the bundle into a temporary ref, then update the local branch
git fetch /tmp/agent-26765512340/aw-test-quarantine-longpollingworks-20260601.bundle refs/heads/test-quarantine/longpollingworks-20260601:refs/bundles/create-pr-test-quarantine-longpollingworks-20260601-ee4c79e117b51203-94e810e2
git update-ref refs/heads/test-quarantine/longpollingworks-20260601-ee4c79e117b51203 refs/bundles/create-pr-test-quarantine-longpollingworks-20260601-ee4c79e117b51203-94e810e2
git checkout test-quarantine/longpollingworks-20260601-ee4c79e117b51203
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d refs/bundles/create-pr-test-quarantine-longpollingworks-20260601-ee4c79e117b51203-94e810e2
# Push the branch to origin
git push origin test-quarantine/longpollingworks-20260601-ee4c79e117b51203
# Create the pull request
gh pr create --title '[test-quarantine] Quarantine TestServerTests.LongPollingWorks' --base main --head test-quarantine/longpollingworks-20260601-ee4c79e117b51203 --repo DeagleGross/aspnetcore
Area:area-signalr — the failing test is Microsoft.AspNetCore.SignalR.Client.Tests.TestServerTests.LongPollingWorks, and the stack trace points directly into SignalR's DefaultHubDispatcher and HubConnectionHandler.
Type:Bug — a flaky test caused by a race condition during teardown where IServiceProvider is disposed before OnDisconnectedAsync completes.
Additional Label:test-failure (already applied) — this is a CI test quarantine issue.
Activity
DeagleGross commentedon Jun 1, 2026
Triage Summary
Area:
area-signalr— the failing test isMicrosoft.AspNetCore.SignalR.Client.Tests.TestServerTests.LongPollingWorks, and the stack trace points directly into SignalR'sDefaultHubDispatcherandHubConnectionHandler.Type:
Bug— a flaky test caused by a race condition during teardown whereIServiceProvideris disposed beforeOnDisconnectedAsynccompletes.Additional Label:
test-failure(already applied) — this is a CI test quarantine issue.Potential Duplicates
Notes
WebSocketsWorkswith the same class of failure (ObjectDisposedExceptioninOnDisconnectedAsync).