prometheus/notifier
Arve Knudsen 020a0b30a0
notifier: fix flaky TestStop_DrainingEnabled and TestStop_DrainingDisabled race conditions (#17938)
Fix flaky TestStop_DrainingEnabled and TestStop_DrainingDisabled tests.
The tests used real HTTP servers and real time, making them susceptible to
race conditions and timing-dependent failures.
The solution is to convert both tests to use synctest for deterministic fake time.

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-01-29 08:07:32 +01:00
..
alert.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
alertmanager.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
alertmanager_test.go feat(notifier): independent alertmanager sendloops (#16355) 2026-01-20 10:33:07 +01:00
alertmanagerset.go feat(notifier): independent alertmanager sendloops (#16355) 2026-01-20 10:33:07 +01:00
manager.go fix(notify): apply config sendloop cleanup fix (#17915) 2026-01-22 22:22:44 +01:00
manager_test.go notifier: fix flaky TestStop_DrainingEnabled and TestStop_DrainingDisabled race conditions (#17938) 2026-01-29 08:07:32 +01:00
metric.go feat(notifier): independent alertmanager sendloops (#16355) 2026-01-20 10:33:07 +01:00
sendloop.go feat(notifier): independent alertmanager sendloops (#16355) 2026-01-20 10:33:07 +01:00
sendloop_test.go feat(notifier): independent alertmanager sendloops (#16355) 2026-01-20 10:33:07 +01:00
util.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
util_test.go feat(notifier): independent alertmanager sendloops (#16355) 2026-01-20 10:33:07 +01:00