Skip to content

Commit

Permalink
chores: fix linter repeated string error (#7714)
Browse files Browse the repository at this point in the history
Co-authored-by: Damian Nolan <damiannolan@gmail.com>
  • Loading branch information
biemoh and damiannolan authored Dec 18, 2024
1 parent ae882ac commit 4baaa27
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (suite *KeeperTestSuite) TestQueryInterchainAccount() {
{
"invalid connection, account address not found",
func() {
req.ConnectionId = "invalid-connection-id"
req.ConnectionId = ibctesting.InvalidID
},
"failed to retrieve account address",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (suite *KeeperTestSuite) TestOnChanOpenInit() {
{
"connection not found",
func() {
channel.ConnectionHops = []string{"invalid-connection-id"}
channel.ConnectionHops = []string{ibctesting.InvalidID}
path.EndpointA.SetChannel(*channel)
},
connectiontypes.ErrConnectionNotFound,
Expand All @@ -186,7 +186,7 @@ func (suite *KeeperTestSuite) TestOnChanOpenInit() {
{
"invalid controller connection ID",
func() {
metadata.ControllerConnectionId = "invalid-connection-id"
metadata.ControllerConnectionId = ibctesting.InvalidID

versionBytes, err := icatypes.ModuleCdc.MarshalJSON(&metadata)
suite.Require().NoError(err)
Expand All @@ -199,7 +199,7 @@ func (suite *KeeperTestSuite) TestOnChanOpenInit() {
{
"invalid host connection ID",
func() {
metadata.HostConnectionId = "invalid-connection-id"
metadata.HostConnectionId = ibctesting.InvalidID

versionBytes, err := icatypes.ModuleCdc.MarshalJSON(&metadata)
suite.Require().NoError(err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (suite *KeeperTestSuite) TestOnChanOpenTry() {
{
"connection not found",
func() {
channel.ConnectionHops = []string{"invalid-connection-id"}
channel.ConnectionHops = []string{ibctesting.InvalidID}
path.EndpointB.SetChannel(*channel)
},
connectiontypes.ErrConnectionNotFound,
Expand Down Expand Up @@ -220,7 +220,7 @@ func (suite *KeeperTestSuite) TestOnChanOpenTry() {
{
"invalid controller connection ID",
func() {
metadata.ControllerConnectionId = "invalid-connection-id"
metadata.ControllerConnectionId = ibctesting.InvalidID

versionBytes, err := icatypes.ModuleCdc.MarshalJSON(&metadata)
suite.Require().NoError(err)
Expand Down
2 changes: 1 addition & 1 deletion modules/apps/transfer/ibc_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (suite *TransferTestSuite) TestOnChanOpenInit() {
// connection hops is not used in the transfer application callback,
// it is already validated in the core OnChanUpgradeInit.
"success: invalid connection hops", func() {
path.EndpointA.ConnectionID = "invalid-connection-id"
path.EndpointA.ConnectionID = ibctesting.InvalidID
}, nil, types.V2,
},
{
Expand Down

0 comments on commit 4baaa27

Please sign in to comment.