open-consul/agent/checks
Daniel Nephin f913bed325 checks: wait for goroutine to complete
CheckAlias already had a waitGroup, but the Add() call was happening too late, which was causing a race in tests. The add must happen before the goroutine is started.

CheckHTTP did not have a waitGroup, so I added it to match CheckAlias.

It looks like a lot of the implementation could be shared, and may not need all of channel, waitgroup and bool, but I will leave that refactor for another time.
2020-07-20 18:55:39 -04:00
..
alias.go checks: wait for goroutine to complete 2020-07-20 18:55:39 -04:00
alias_test.go Enable gofmt simplify 2020-06-16 13:21:11 -04:00
check.go checks: wait for goroutine to complete 2020-07-20 18:55:39 -04:00
check_test.go feat: support sending body in HTTP checks (#6602) 2020-02-10 09:27:12 -07:00
docker.go Sets tty in docker client back to true, as a potential fix for docker exec weirdness 2017-11-05 09:44:55 -06:00
docker_unix.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
docker_windows.go Decouple the code that executes checks from the agent 2017-10-25 11:18:07 +02:00
grpc.go grpc: use default resolver scheme for grpc dialing (#7617) 2020-05-20 22:26:26 +02:00
grpc_test.go Allow users to configure either unstructured or JSON logging (#7130) 2020-01-28 17:50:41 -06:00