-
Notifications
You must be signed in to change notification settings - Fork 690
feat: Unit tests for Packet Forward Middleware #8313
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
base: tamjid/pfm-homecoming
Are you sure you want to change the base?
Conversation
|
s.pathBC.Setup() | ||
} | ||
|
||
func (s *PFMTestSuite) TestOnRecvPacket() { |
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.
Make a single TestOnRecvPacket
with table test cases. See the ibc-go test cases for an example
s.Require().NoError(err) | ||
} | ||
|
||
func (s *PFMTestSuite) pktForwardMiddleware(chain *ibctesting.TestChain, module string) packetforward.IBCMiddleware { |
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.
As linter says, PFM is always wrapping transfer so we don't need to do this
Description
This PR is to add unit test for PacketForwardMiddleware
Homecoming
.partially implements: #8269
🔔 We need to improve how unit tests are written. But that is not in scope for this epic.
This is the tracker for writing better unit tests. cosmos/ibc#1222