alertmanager/test/with_api_v2/acceptance
gotjosh ef786ea402
Force close mock servers as part of v2 acceptance tests
While merging #2944, I noticed the CI failed: https://app.circleci.com/pipelines/github/prometheus/alertmanager/2686/workflows/b6f87b0a-20c3-455b-b706-432c38a77511/jobs/12028.

It seemed like a deadlock between uncoordinated routines but I couldn't pin point (or reproduce, I tried with -race and -count) the exact problem. However, from the logs, I could point out where the problem originated and kind of have a hunch it had to do with the way net listeners are handled by the TODO removed.

The more worrying bit of the CI failure is that it took 10m to timeout, with this change we'll force close the connection with a 5s deadline so at the very least we'll get the feedback faster.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
2022-06-17 12:43:43 +01:00
..
api_test.go Force close mock servers as part of v2 acceptance tests 2022-06-17 12:43:43 +01:00
cluster_test.go Force close mock servers as part of v2 acceptance tests 2022-06-17 12:43:43 +01:00
inhibit_test.go Force close mock servers as part of v2 acceptance tests 2022-06-17 12:43:43 +01:00
send_test.go Force close mock servers as part of v2 acceptance tests 2022-06-17 12:43:43 +01:00
silence_test.go Force close mock servers as part of v2 acceptance tests 2022-06-17 12:43:43 +01:00
web_test.go test/with_api_v2: add test for route prefix 2018-11-23 13:59:28 +01:00