-
Notifications
You must be signed in to change notification settings - Fork 781
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
[Merged by Bors] - Test the pruning of excess peers using randomly generated input #3248
Conversation
@michaelsproul could you give this a review? It seems to me we don't need to do this much work to produce the rand values. I'm thinking we could derive/implement After you've reviewed this I can continue on the logic level review |
@ackintosh I think we can go with |
@divagant-martian @AgeManning Thank you for your review! @michaelsproul Could you have a look at this, please? 🙏 |
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.
This looks like a nice improvement to our tests! I added minor suggestions to the code, otherwise it's a 👍 from me. You've simplified the quickcheck use so I think Michael's review is no longer necessary. For the failing test (cargo audit) could you merge unstable?
Thanks!
Co-authored-by: Divma <[email protected]>
Co-authored-by: Divma <[email protected]>
Co-authored-by: Divma <[email protected]>
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.
LGTM.
bors r+ |
## Issue Addressed #3092 ## Proposed Changes Added property-based tests for the pruning implementation. A randomly generated input for the test contains connection direction, subnets, and scores. ## Additional Info I left some comments on this PR, what I have tried, and [a question](#3248 (comment)). Co-authored-by: Diva M <[email protected]>
## Issue Addressed #3092 ## Proposed Changes Added property-based tests for the pruning implementation. A randomly generated input for the test contains connection direction, subnets, and scores. ## Additional Info I left some comments on this PR, what I have tried, and [a question](#3248 (comment)). Co-authored-by: Diva M <[email protected]>
Build failed: |
bors retry |
## Issue Addressed #3092 ## Proposed Changes Added property-based tests for the pruning implementation. A randomly generated input for the test contains connection direction, subnets, and scores. ## Additional Info I left some comments on this PR, what I have tried, and [a question](#3248 (comment)). Co-authored-by: Diva M <[email protected]>
Issue Addressed
#3092
Proposed Changes
Added property-based tests for the pruning implementation. A randomly generated input for the test contains connection direction, subnets, and scores.
Additional Info
I left some comments on this PR, what I have tried, and a question.