-
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
refactor(distribution): CLI tests using Tendermint Mock #13692
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #13692 +/- ##
==========================================
+ Coverage 55.43% 56.00% +0.56%
==========================================
Files 646 646
Lines 55779 55784 +5
==========================================
+ Hits 30922 31240 +318
+ Misses 22341 22003 -338
- Partials 2516 2541 +25
|
@@ -1,4 +1,4 @@ | |||
package testutil | |||
package distribution |
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.
Personally, I am confused. Given that it uses depinject, isn't it more an integration test than an e2e test?
cc @kocubinski
…ita/distribution-cli-tests
…ita/distribution-cli-tests
…ita/distribution-cli-tests
…ita/distribution-cli-tests
…ita/distribution-cli-tests
responseQuery abci.ResponseQuery | ||
} | ||
|
||
func newMockTendermintRPC(respQuery abci.ResponseQuery) mockTendermintRPC { |
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.
Probably not for this PR, but could we have this in a single place? I've seen it many times and mayyybe we can centralize it
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.
Oh yeah that would be great! It should be under testutil/cli as it's used in all CLI tests.
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, a small doubt
Description
Closes: #13479
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change