-
Notifications
You must be signed in to change notification settings - Fork 270
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
Remove sleep() from tests #1085
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of issue or feature request:
Tests use sleep() quite a lot: this makes them slow, and they still don't always protect whatever the sleep is trying to protect.
Current behavior:
python3 test_updater.py
takes 25 seconds to run 38 testsStatus:
I have a work-in-progress branch: https://github.com/jku/tuf/tree/remove-sleep-wip : it might not take care of all corner cases yet, the comments are still about the old implementation and it only covers test_updater.py but it does take execution time of
python3 test_updater.py
from 25 seconds to 8 seconds.I'm filing this so I don't forget the branch on the holiday -- but 🥇 for anyone who takes it, polishes and extends it
The text was updated successfully, but these errors were encountered: