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

[bug fix] Make sure we sleep for positive duration #273

Merged
merged 2 commits into from
Apr 9, 2018
Merged

Conversation

dturn
Copy link
Contributor

@dturn dturn commented Apr 6, 2018

Due to calling Time.now.utc twice, it was possible for sleep to receive a negative value. Fix that by calling Time.now.utc once and ensure the sleep duration is > 0.

Fixes: #272 (comment)

Attempted to improve: #274

@klautcomputing
Copy link
Contributor

I got the tests to pass but one of the test was very flakey see #274

@dturn dturn force-pushed the bug-fix-sleep branch 2 times, most recently from 70855cf to 04dbb60 Compare April 9, 2018 14:36
@dturn dturn merged commit 61af612 into master Apr 9, 2018
@dturn dturn deleted the bug-fix-sleep branch April 9, 2018 15:17
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.

None yet

3 participants