test: improve observer module coverage#1961
Conversation
|
!!!WARNING!!! Be very careful about using Only suppress a single rule (or a specific set of rules) within a section of code, while continuing to scan for other problems. To do this, you can list the rule(s) to be suppressed within the #nosec annotation, e.g: /* #nosec G401 */ or //#nosec G201 G202 G203 Pay extra attention to the way |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1961 +/- ##
===========================================
+ Coverage 58.46% 63.08% +4.62%
===========================================
Files 234 233 -1
Lines 13392 13381 -11
===========================================
+ Hits 7829 8442 +613
+ Misses 5159 4540 -619
+ Partials 404 399 -5
|
kingpinXD
left a comment
There was a problem hiding this comment.
Looks great , left some comments please have a look.
Not part of the PR but some thoughts I had while reviewing
- The validation logic for maturity blocks should probably check that the number is positive
- When we remove the observer for the observer set we should probably pause the outbound, or at least have a way to notify that the observer set is modified. When it gets modified it would mean that the observer can no longer sign inbounds but still need to be part of the TSS sign for outbounds, which is weird?
@kingpinXD thanks for review, i addressed your comments, please recheck when you get a chance regarding your suggestions, including this one #1961 (comment) do you mind opening issues for it, since you have more context? |
Added the issues here dc1a85e I don't think the second point I mentioned needs to be fixed , this part of the logic should handle that |
kingpinXD
left a comment
There was a problem hiding this comment.
Looks good , unresolved one of the comments , please have a look before merging
Description
Improves coverage for observer module from 63.9% to 92.47%. Lot of tests were missing, but hopefully this is decent coverage now. Some notes:
Closes: #1743
Type of change
Tests
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Include instructions and any relevant details so others can reproduce.
Checklist: