-
Notifications
You must be signed in to change notification settings - Fork 24
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
Attribute error during timeout cancelling transfer #209
Conversation
@jsattelb thanks for the fix and the nice test! Looks like the test does not work:
In this case the fix is trivial, and testing it is 10 times more complicated. I think having a test is nice to have, but lets first the issue first, and move the test to another PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix is good, test need more work.
Test works now :-) The only obstacle is missing Signged-off-by header in the commit message: |
My fault! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot to mention that we like clean history - every commit does one logical change. This change can be one commit or 2 commits (fix, test).
If you don't know how to rebase we can handle this.
Thanks!
- Change remaining instances of errors.TicketCancelTimeout to errors.TransferCancelTimeout - Include an initial unit test that attempts to mimic two connection attempts: - Connection 1 initiates the transfer - Connection 2 issues the delete request - Fixed unit test to incorporate suggestions: - Use testutil.create_tempfile to create temporary file - Use a smaller file, 8 MiB (hopefully) is enough to simulate the issue - Use monkeypatch.setattr() to modify global values for test_delete_conflict test - Use time.sleep() instead of reading one byte Signed-off-by: jsattelb <jsattelb@ldeo.columbia.edu>
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thank you!
Change remaining instances of errors.TicketCancelTimeout to errors.TransferCancelTimeout.
Include an initial unit test that attempts to mimic two connection attempts:
Fixes #208