Skip to content

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

Open
wants to merge 4 commits into
base: tamjid/pfm-homecoming
Choose a base branch
from

Conversation

DeshErBojhaa
Copy link
Contributor

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

Copy link

s.pathBC.Setup()
}

func (s *PFMTestSuite) TestOnRecvPacket() {
Copy link
Member

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 {
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants