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

Make sure Http.Mock.stub works properly in multithreaded environments #127

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

waj
Copy link
Member

@waj waj commented Dec 13, 2024

The stub function keeps a list of the values returned by the mocks within an IORef, but the updates are not atomic so we get some random failures when HTTP requests are made in parallel on multiple threads.

@waj waj requested review from a team and zwilias and removed request for a team December 13, 2024 15:20
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.

1 participant