-
Notifications
You must be signed in to change notification settings - Fork 377
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
Added a test for #918 #4906
Added a test for #918 #4906
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4906 +/- ##
==========================================
Coverage ? 80.73%
==========================================
Files ? 119
Lines ? 14425
Branches ? 2227
==========================================
Hits ? 11646
Misses ? 2123
Partials ? 656
Continue to review full report at Codecov.
|
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.
Potential additions:
- explanation: why is this settle timeout too small
- test that it does not raise an exception for larger settle timeouts, making sure that the threshold is exactly where it should be
This just explains the relation ship among the reveal and settle timeouts, it is intendend to be read by a Raiden user.
token_address=token_address, | ||
partner_address=api2.address, | ||
settle_timeout=invalid_settle_timeout, | ||
) |
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.
Actually, I was suggesting to test that channel_open
will succeed for settle_timeout = node1.raiden.config["reveal_timeout"] * 2
to verify that the settle_timeout validity threshold is honored in both directions.
But maybe the condition is so simple that a test for that is overkill. Add it or leave it at your own discretion.
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.
done
Description
Issue #918 needs that the reveal timeout and settle timeout are validated against each other.
PR review check list
Quality check list that cannot be automatically verified.