-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Return correct error on invalid messages #4100
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4100 +/- ##
==========================================
+ Coverage 59.97% 60.1% +0.12%
==========================================
Files 211 211
Lines 15111 15114 +3
==========================================
+ Hits 9063 9084 +21
+ Misses 5428 5410 -18
Partials 620 620 |
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.
Clean and straightforward. I've requested writing a simple test case
Added test cases for this exact path @alessio |
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestInvalidMsg(t *testing.T) { |
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.
wow, we didn't have any test for the handler ?
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.
Not directly, no. I believe most of the handler testing is done through simulation and app/abci module tests, but not directly.
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.
ACK
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.
ACK
closes: #3978
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry:
sdkch add [section] [stanza] [message]
rereviewed
Files changed
in the github PR explorerFor Admin Use: