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
Fix test hanging issue: remove manual OnDispose event triggering
The original fix introduced a deadlock/race condition by manually invoking
OnDispose events after tracking objects with ObjectTracker. This caused
tests to hang because:
1. ObjectTracker.TrackObject() adds disposal callbacks to events.OnDispose
2. Manual invocation of events.OnDispose triggered these callbacks immediately
3. This led to premature disposal and potential deadlocks in the disposal system
Fixed by removing manual OnDispose invocations and letting ObjectTracker
handle disposal automatically through the normal test lifecycle.
Co-authored-by: Tom Longhurst <thomhurst@users.noreply.github.com>
0 commit comments