You've already forked alertmanager
mirror of
https://github.com/prometheus/alertmanager.git
synced 2026-10-24 20:39:28 +03:00
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>