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 flaky DecoratorAdaptableTests by waiting for decorator jobs
The previous fix in commit 9c171a0 added UITestUtil.processEvents()
to wait for decorator enablement, but this only processes the event
queue and doesn't wait for asynchronous jobs to complete.
The DecoratorManager.setEnabled() method triggers updateForEnablementChange()
which uses fireListenersInUIThread() to schedule WorkbenchJob instances.
These jobs may not complete before tests check decoration results, causing
intermittent failures.
This fix introduces waitForDecoratorJobs() which uses Job.getJobManager().join()
to wait for all FAMILY_DECORATE jobs to complete before proceeding with tests.
Fixes: #868
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments