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 race condition in DecoratorAdaptableTests by adding event loop processing
Fixeseclipse-platform#868
The tests testAdaptables, testNonAdaptableContributions, and
testContributorResourceAdapter were experiencing intermittent failures
due to a race condition. After enabling decorators in the @before method,
the decorator manager schedules asynchronous updates that may not have
completed before the test assertions ran.
This commit adds calls to UITestUtil.processEvents() in both @before
and @after methods to ensure all pending UI events are processed before
tests run and after tests complete. This is a standard pattern for
preventing race conditions in Eclipse UI tests.
The processEvents() method processes all pending events in the Display
event queue, ensuring that decorator registration and enablement updates
have completed before the test proceeds.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments