consul/agent/auto-config
Daniel Nephin b27457dac8 ci: go-test-race switch to exclude list
Most packages should pass the race detector. An exclude list ensures
that new packages are automatically tested with -race.

Also fix a couple small test races to allow more packages to be tested.

Returning readyCh requires a lock because it can be set to nil, and
setting it to nil will race without the lock.

Move the TestServer.Listening calls around so that they properly guard
setting TestServer.l. Otherwise it races.

Remove t.Parallel in a small package. The entire package tests run in a
few seconds, so t.Parallel does very little.

In auto-config, wait for the AutoConfig.run goroutine to stop before
calling readPersistedAutoConfig. Without this change there was a data
race on reading ac.config.
2020-11-11 14:44:57 -05:00
..
auto_config.go lib/retry: Refactor to reduce the interface surface 2020-10-04 18:12:42 -04:00
auto_config_test.go ci: go-test-race switch to exclude list 2020-11-11 14:44:57 -05:00
auto_encrypt.go lib/retry: Refactor to reduce the interface surface 2020-10-04 18:12:42 -04:00
auto_encrypt_test.go lib/retry: Refactor to reduce the interface surface 2020-10-04 18:12:42 -04:00
config.go lib/retry: Refactor to reduce the interface surface 2020-10-04 18:12:42 -04:00
config_translate.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
config_translate_test.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
mock_test.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
persist.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
run.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
server_addr.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
tls.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
tls_test.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00