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

Fix data race in expiration UT #847

Merged
merged 1 commit into from
Mar 12, 2020
Merged

Conversation

yacovm
Copy link
Contributor

@yacovm yacovm commented Mar 12, 2020

The map was accessed by TestExpiration but was also accessed by other tests since it was a global variable (tsk tsk tsk...)

Made the map to be a local variable, and now in the tests where it isn't used it's just a nil map which always returns the zero value.

Change-Id: I341dcfdc1b5138b77ced6283ee6ef1fba7f8d64d
Signed-off-by: yacovm yacovm@il.ibm.com

Change-Id: I341dcfdc1b5138b77ced6283ee6ef1fba7f8d64d
Signed-off-by: yacovm <yacovm@il.ibm.com>
@yacovm yacovm requested a review from a team as a code owner March 12, 2020 18:40
@yacovm yacovm merged commit ff29da2 into hyperledger:master Mar 12, 2020
@yacovm yacovm deleted the expirationDataRace branch March 12, 2020 21:02
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