diff --git a/modules/apps/27-interchain-accounts/controller/keeper/grpc_query_test.go b/modules/apps/27-interchain-accounts/controller/keeper/grpc_query_test.go index cc2002a2540..e5d73cfe5c6 100644 --- a/modules/apps/27-interchain-accounts/controller/keeper/grpc_query_test.go +++ b/modules/apps/27-interchain-accounts/controller/keeper/grpc_query_test.go @@ -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", }, diff --git a/modules/apps/27-interchain-accounts/controller/keeper/handshake_test.go b/modules/apps/27-interchain-accounts/controller/keeper/handshake_test.go index 0f3a291ffdf..e841feba14e 100644 --- a/modules/apps/27-interchain-accounts/controller/keeper/handshake_test.go +++ b/modules/apps/27-interchain-accounts/controller/keeper/handshake_test.go @@ -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, @@ -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) @@ -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) diff --git a/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go b/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go index db00f4decde..7fea0c075f3 100644 --- a/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go +++ b/modules/apps/27-interchain-accounts/host/keeper/handshake_test.go @@ -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, @@ -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) diff --git a/modules/apps/transfer/ibc_module_test.go b/modules/apps/transfer/ibc_module_test.go index 6ff8ab21fee..47cbc1ac554 100644 --- a/modules/apps/transfer/ibc_module_test.go +++ b/modules/apps/transfer/ibc_module_test.go @@ -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, }, {