Skip to content

discovery: unskip TestSrvResolverBuilderSuccess without racing state - #217

Open
team-humaki wants to merge 1 commit into
mailgun:masterfrom
team-humaki:discovery-srv-success-race
Open

team-humaki wants to merge 1 commit into
mailgun:masterfrom
team-humaki:discovery-srv-success-race

Conversation

@team-humaki

Copy link
Copy Markdown

TestSrvResolverBuilderSuccess was skipped for #150. UpdateState wrote state under a mutex, then sent on updateChan while still holding that lock. The test read cc.state after the signal with no lock, and lookupSRV can call UpdateState twice, so the race detector flagged the Address slice.

Signal after unlocking, copy state under the mutex, and run the test again.

Fixes #150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DATA RACE in holster/discovery

1 participant