Skip to content

Quarantine TestServerTests.LongPollingWorks (ObjectDisposedException in DefaultHubDispatcher) #67348

@github-actions

Description

@github-actions

Failing Test

Microsoft.AspNetCore.SignalR.Client.Tests.TestServerTests.LongPollingWorks

Error Message

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.

Stacktrace

Stack trace
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'IServiceProvider'.
   at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubLifetimeContext context, Exception exception)
   at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection)

Logs

Log: TestServerTests_LongPollingWorks.log

Build

Failed in multiple main branch builds. The error occurs in DefaultHubDispatcher.OnDisconnectedAsync when the DI service provider has already been disposed during test teardown, but the hub disconnect handler still tries to access it. This is a timing-dependent failure during long-polling connection cleanup.

Generated by Daily Test Quarantine Management · 5.7K AIC · ⌖ 52 AIC · ⊞ 25.6K ·

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions