1
0
mirror of https://github.com/prometheus/alertmanager.git synced 2026-10-24 20:39:28 +03:00
Files
alertmanager/httpserver
Solomon Jacobs c21959fe30 httpserver: improve reload handler tests
Use testing/synctest for deterministic scheduling.

Move all require.* assertions into the test goroutine, since
require.FailNow must not be called from other goroutines.

Use t.Context() and http.MethodPost, and deduplicate the handler
goroutine into a serveReload helper.

Signed-off-by: Solomon Jacobs <solomonjacobs@protonmail.com>
2026-08-19 11:59:49 +02:00
..