consul/agent/checks
Daniel Nephin 1910e2a246 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
docker.go
docker_unix.go
docker_windows.go
grpc.go grpc: use default resolver scheme for grpc dialing (#7617) 2020-05-20 22:26:26 +02:00
grpc_test.go