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

Speed up unit tests from 21s to 8ms by mocking call to time(). #1

Merged
merged 1 commit into from
Nov 15, 2016

Conversation

donkirkby
Copy link
Contributor

Thanks for sharing the project. I'm going to include it in our project, but I didn't want to slow down our test suite with all the calls to sleep. Here's a test that never sleeps.

Copy link
Owner

@wkeeling wkeeling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea on mocking sleep(). Many thanks!

@wkeeling wkeeling merged commit 1d75815 into wkeeling:master Nov 15, 2016
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

Successfully merging this pull request may close these issues.

2 participants