mirror of https://github.com/status-im/consul.git
a5fe2125e9
The watch is established in a background goroutine and the first assertion proves that the watcher is active so there is no reason for the update to happen in a racy goroutine. Note that this does not completely remove the race condition as the first call to testGetConfigValTimeout could time out before a config is returned. |
||
---|---|---|
.. | ||
config.go | ||
config_test.go | ||
conn.go | ||
conn_test.go | ||
listener.go | ||
listener_test.go | ||
proxy.go | ||
proxy_test.go | ||
testing.go |