mirror of
https://github.com/prometheus/alertmanager.git
synced 2026-02-05 15:45:34 +01:00
At the moment we try to allocate ports in the tests, the close them, and then start alertmanager on those ports. This is very brittle and often fails. Fix the race conditions by directly starting alertmanager on system-allocated free ports (using :0 in the address) and then detecting the ports used, and using those in the test. Signed-off-by: Guido Trotter <guido@hudson-trading.com> Co-authored-by: Guido Trotter <guido@hudson-trading.com>