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

Make TimedCache tests not time-dependent #3

Open
mplanchard opened this issue Sep 4, 2017 · 0 comments
Open

Make TimedCache tests not time-dependent #3

mplanchard opened this issue Sep 4, 2017 · 0 comments

Comments

@mplanchard
Copy link
Owner

Sometimes Travis is slower than others, and it's always slower than my machine, so the 0.005 seconds given to do some of the operations pre-cache invalidation in the tests isn't always enough. Rather than bumping it again, I'd prefer to do some mocking so that the test isn't actually time dependent, maybe use side_effect to return appropriate values for time.time() as the test progresses.

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

No branches or pull requests

1 participant