Commit graph

4 commits

Author SHA1 Message Date
Johannes Schmidt
5145e2f526 Add test-case to verify delayed (times) notifications feature 2026-01-13 10:55:24 +01:00
Johannes Schmidt
f7b801d367 Add test-case to reproduce a race condition in NotificationComponent
The race is between `NotificationTimerHandler`, which sends a reminder notification
after a certain inverval during problem states and `SendNotificationsHandler` which
sends out the notifications on state changes.

When the timer handler runs just before a state change triggers a notification, the
timer handler might pick up that state-change before the send notification handler
can set its no_more_notifications flag. In that case a "reminder" notification will
be sent out before the initial one, and despite `interval = 0` on the notification
object.
2026-01-12 10:49:48 +01:00
Johannes Schmidt
75c7d28bb1 Adapt the unit-test to reflect fix in the previous commit 2025-11-03 15:39:39 +01:00
Johannes Schmidt
68b3b9fd3a Add unit-tests for NotificationComponent
This includes a few common scenarios and a reproduction of the current behavior
affected by the underlying bug of issue #10575. This is done both to document
the change in behavior, as well as to ensure the behavior of the other scenarios
stays the same before and after the fix is applied.
2025-11-03 15:39:35 +01:00