Skip to content
This repository has been archived by the owner on Sep 13, 2018. It is now read-only.

Race condition in test_reaching_max_in_flight_requests #114

Open
casey opened this issue Jan 10, 2017 · 0 comments
Open

Race condition in test_reaching_max_in_flight_requests #114

casey opened this issue Jan 10, 2017 · 0 comments

Comments

@casey
Copy link
Contributor

casey commented Jan 10, 2017

I think I found a race condition in test_reaching_max_in_flight_requests which causes this assertion:

assert_eq!(32, c1.load(Ordering::SeqCst));

to fail because the rhs is equal to 33. I noticed it organically a couple of times while running the tests. After experimenting a little bit, I found it is hit every time if you add a 1 second sleep before that assertion, as in this commit:

casey@99f54ed

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

No branches or pull requests

1 participant