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

Bugfix block persisting retry #22

Merged
merged 5 commits into from
Apr 14, 2016
Merged

Conversation

jquast
Copy link
Collaborator

@jquast jquast commented Apr 14, 2016

This repeat's @ferboz's PR #21, with changelog, version bump, tests cleanup.

... and an additional minor bugfix! (documented in changelog of README.rst) horay for tests.

Fiorentino Francesco and others added 5 commits April 1, 2016 09:25
… documentation

Previously 'retry' parameter match the absolute number of resend before failing.
With the fix 'retry' match the maximum number of resend a failed packet before failing
In many of these cases, 'error_count' is incremented before being compared to
retry, so, where error_count is 0 and retry is 1, the expression:

error_count += 1
if error_count >= retry:
   (...)

would always evaluate, and never retry as intended
We should always chose to test on the edge of any numeric
boundaries whenever they are identified as a given.  In this
case, by ensuring we always retry minimally 1 time, we discovered
another bug (fixed by previous commit), where retry=1 would never
retry, exposing an off-by-1 count.
@coveralls
Copy link

Coverage Status

Coverage increased (+4.3%) to 67.524% when pulling c7ffd6d on bugfix-block-persisting-retry into 695aa83 on master.

@jquast jquast merged commit 34c12cd into master Apr 14, 2016
@jquast jquast deleted the bugfix-block-persisting-retry branch April 14, 2016 16:34
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