You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
first of all, I am really amazed by this crate! But I am not able to understand, what is really going on under the hood to achieve this functionality. Therefore my first idea was to use your crate for mocking purposes in tests. Sadly, your implementation is not thread safe, reproducible example below:
Hello,
first of all, I am really amazed by this crate! But I am not able to understand, what is really going on under the hood to achieve this functionality. Therefore my first idea was to use your crate for mocking purposes in tests. Sadly, your implementation is not thread safe, reproducible example below:
(Execute this a couple times to see random failures and random successful runs. Runs perfectly fine with
cargo test -- --test-threads 1
.)Is it possible, to achieve thread safety? And would it be something you would like to implement? I would really appreciate it :)
Thank you!
The text was updated successfully, but these errors were encountered: