Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eliminate race condition in ContextMapTest.VerifyWithThreads #637

Merged
merged 1 commit into from
Jul 10, 2015

Conversation

codemercenary
Copy link
Contributor

This race condition occurs because we weren't waiting for the context to actually finish terminating before attempting to assess the state of the context map. This meant that the secondary thread was sometimes still running even when we expected it to have already terminated.

This race condition occurs because we weren't waiting for the context to actually finish terminating before attempting to assess the state of the context map.  This meant that the secondary thread was sometimes still running even when we expected it to have already terminated.
@yeswalrus
Copy link
Contributor

+1 for adding better tests too.

yeswalrus added a commit that referenced this pull request Jul 10, 2015
Eliminate race condition in ContextMapTest.VerifyWithThreads
@yeswalrus yeswalrus merged commit c2ab606 into develop Jul 10, 2015
@yeswalrus yeswalrus deleted the fix-contextraces branch July 10, 2015 23:21
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.

2 participants