Skip to content

Commit

Permalink
Force distinct channel identifiers when testing UpgradeOpen.
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitrisJim committed Jul 11, 2023
1 parent b756110 commit 7818a24
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/core/04-channel/keeper/upgrade_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,14 @@ func (suite *KeeperTestSuite) TestChanUpgradeOpen() {
},
}

// Create an initial path used only to invoke a ChanOpenInit handshake.
// This bumps the channel identifier generated for chain A on the
// next path used to run the upgrade handshake.
// See issue 4062.
path = ibctesting.NewPath(suite.chainA, suite.chainB)
suite.coordinator.SetupConnections(path)
suite.Require().NoError(path.EndpointA.ChanOpenInit())

for _, tc := range testCases {
tc := tc
suite.Run(tc.name, func() {
Expand Down

0 comments on commit 7818a24

Please sign in to comment.