Branch: refs/heads/stable-17.10.x Home: https://github.com/xwiki/xwiki-platform Commit: b93c968456e3094f7549511c7488c710cb84a3b6 https://github.com/xwiki/xwiki-platform/commit/b93c968456e3094f7549511c7488c... 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) (#6291) * 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