mirror of https://github.com/hashicorp/consul
Some global variables are patched to shorter values in these tests. But the goroutines that read them can outlive the test because nothing waited for them to exit. This commit adds a Wait() method to the routine manager, so that tests can wait for the goroutines to exit. This prevents the data race because the 'reset to original value' can happen after all other goroutines have stopped.pull/10396/head
parent
4a92f2d428
commit
baa2b8628e
Loading…
Reference in new issue