mirror of https://github.com/status-im/consul.git
b27457dac8
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. |
||
---|---|---|
.. | ||
auto_config.go | ||
auto_config_test.go | ||
auto_encrypt.go | ||
auto_encrypt_test.go | ||
config.go | ||
config_translate.go | ||
config_translate_test.go | ||
mock_test.go | ||
persist.go | ||
run.go | ||
server_addr.go | ||
tls.go | ||
tls_test.go |