[xwiki/xwiki-platform] d39757: XWIKI-24785: PrefilteringLiveNotificationEmailDisp...
Branch: refs/heads/stable-18.4.x Home: https://github.com/xwiki/xwiki-platform Commit: d397575baa0e9068a7344ff25f503e836fc4379d https://github.com/xwiki/xwiki-platform/commit/d397575baa0e9068a7344ff25f503... Author: Vincent Massol <[email protected]> Date: 2026-09-02 (Wed, 02 Sep 2026) Changed paths: M xwiki-platform-core/xwiki-platform-notifications/xwiki-platform-notifications-notifiers/xwiki-platform-notifications-notifiers-api/src/test/java/org/xwiki/notifications/notifiers/internal/email/live/PrefilteringLiveNotificationEmailDispatcherTest.java Log Message: ----------- XWIKI-24785: PrefilteringLiveNotificationEmailDispatcherTest#addEvent is still flickering (#6290) (#6292) * Replace the dispatcher's ScheduledExecutorService with a mock which only records the dispatch tasks, and run them from the test once all the events of a step have been added, so that the test drives the dispatch instead of racing it. * Remove the timeout(5000) waits and the resetDispatcher() workaround they needed, the test being deterministic now. * Mock the Execution component too, since the dispatch tasks now set up and tear down their execution context in the test thread. (cherry picked from commit e0a47eca4d5e5eafc4c643c903c65385dd4245c2) Co-authored-by: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications