Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public abstract class AppComponentTest(SchedulingApp app) : IDisposable
public void Dispose()
{
OnDispose();
Scope?.Dispose();
Copy link

Copilot AI Dec 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change may cause test runner hangs. There's an identical AppComponentTest class in test/modules/servicebus/Elsa.ServiceBus.AzureServiceBus.ComponentTests/Abstractions/AppComponentTest.cs that has a similar Scope property, but the disposal is commented out with an explicit warning: "Disposing the Scope here and in other places where it is created somehow seems to cause the test runner to hang when running other test projects."

Before merging this change, please verify that disposing the Scope in this test class doesn't cause similar hanging issues. Consider running the full test suite, including other test projects, to ensure this doesn't introduce instability.

Suggested change
Scope?.Dispose();
// Do not dispose Scope here. Disposing the Scope in similar component test base classes
// has been observed to cause the test runner to hang when running other test projects.

Copilot uses AI. Check for mistakes.
GC.SuppressFinalize(this);
}

Expand Down
Loading