Branch: refs/heads/XWIKI-24785 Home: https://github.com/xwiki/xwiki-platform Commit: e830ed4b9d8c7ea10e80689af05dd76edad7539c https://github.com/xwiki/xwiki-platform/commit/e830ed4b9d8c7ea10e80689af05dd... 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 * 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. 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