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

Test suite assumes that tests run one at a time rather than in parallel #128

Open
bjorn3 opened this issue Nov 11, 2022 · 0 comments
Open

Comments

@bjorn3
Copy link

bjorn3 commented Nov 11, 2022

In https://github.com/FluenTech/embedded-time/blob/master/tests/timer.rs a single global static is used and manipulated from multiple tests. This is a race condition resulting in occasional spurious failure like this crater run. Using a thread local should fix this issue.

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

No branches or pull requests

1 participant