Skip to content

connection tests now do not race - #552

Merged
vkuznecovas merged 1 commit into
masterfrom
fix-test-race-condition
Nov 20, 2018
Merged

connection tests now do not race#552
vkuznecovas merged 1 commit into
masterfrom
fix-test-race-condition

Conversation

@vkuznecovas

Copy link
Copy Markdown
Contributor

The connection factory used for testing was implemented incorrectly. The factory always returned the same instance, so in situations where the connection was created multiple times a race condition could occur, since the state of the same connection was being mutated.

@tadovas tadovas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting problem. Another gotcha to look out when writting tests :(

@vkuznecovas
vkuznecovas merged commit 5220a15 into master Nov 20, 2018
@vkuznecovas
vkuznecovas deleted the fix-test-race-condition branch November 20, 2018 09:43
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.

3 participants