mirror of https://github.com/hashicorp/consul
Browse Source
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.pull/13927/head
Chris S. Kim
2 years ago
committed by
Chris S. Kim
1 changed files with 9 additions and 16 deletions
Loading…
Reference in new issue