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

random rate test often fails on Windows XP... #33

Closed
choksi81 opened this issue May 24, 2014 · 2 comments
Closed

random rate test often fails on Windows XP... #33

choksi81 opened this issue May 24, 2014 · 2 comments
Assignees

Comments

@choksi81
Copy link
Contributor

On Windows XP, it is common for the ut_repytests_randomratetest.py to fail. The root cause is unclear.

@choksi81
Copy link
Contributor Author

Author: justinc
Odd, this seems to happen because both threads get delayed for some longer time than usual. For example, it seems that they both will delay for 1.5-1.7 seconds and then run in an arbitrary order.

I can't increase the number of randomfloat calls because the OS will actually block in many cases then.

This is exacerbated by the fact that scheduling times seem to be chaotic in most cases.

@choksi81
Copy link
Contributor Author

Author: justinc
Fixed in r4182. I only needed to update the test. It looks like this is a mix of scheduler / timer firing issues and general randomness. I do three runs and have a sleep to make timer behavior more predictable.

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

2 participants