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

Serialize dummy/fake creation in specs that count constructor calls #1412

Merged
merged 1 commit into from
Aug 19, 2018

Conversation

blairconrad
Copy link
Member

As noted in #1410 (comment), there is a race condition in a couple of tests that count the number of times failing constructors are called. This should ensure we run those tests serially rather than concurrently.

@blairconrad
Copy link
Member Author

Mind like a sieve. I meant to assert that the waits succeed. I can amend on Sunday. And/or respond to other comments.

@blairconrad
Copy link
Member Author

Instead of checking the Wait, now releasing the lock in a Teardown, which I had forgotten existed.

Copy link
Member

@thomaslevesque thomaslevesque left a comment

Choose a reason for hiding this comment

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

Very nice @blairconrad, thanks!

@thomaslevesque thomaslevesque merged commit 35d5a21 into FakeItEasy:develop Aug 19, 2018
@blairconrad
Copy link
Member Author

Thank you!

@blairconrad blairconrad added this to the vNext milestone Aug 19, 2018
@blairconrad blairconrad deleted the serialize-spec branch August 19, 2018 21:52
@blairconrad
Copy link
Member Author

This change has been released as part of FakeItEasy 4.8.1.

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

Successfully merging this pull request may close these issues.

None yet

2 participants