forked from cortexproject/cortex
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kv/etcd: Fix race condition within unit test for Watch method (cortex…
…project#6479) Copied from grafana/dskit#336 Fixes a race condition during setup for Client.Watch tests where a conditional variable broadcast was missed by the caller waiting on the conditional variable. Verified by running the tests many times with a timeout: ``` go test -timeout=10s -count=10000 -run=TestMockKV_Watch ./pkg/ring/kv/etcd/ ``` Fixes: - cortexproject#6478 - cortexproject#5564 Signed-off-by: Charlie Le <[email protected]>
- Loading branch information
1 parent
a8ee1a2
commit 42028f7
Showing
1 changed file
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters