Skip to content

Commit

Permalink
removing staking test for insufficient funds
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Nov 12, 2021
1 parent 883be51 commit 5bfa5f4
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions modules/apps/27-interchain-accounts/keeper/relay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,31 +212,6 @@ func (suite *KeeperTestSuite) TestOnRecvPacket() {
},
true,
},
{
"interchain account fails to execute stakingtypes.MsgDelegate - insufficient funds",
func() {
interchainAccountAddr, found := suite.chainB.GetSimApp().ICAKeeper.GetInterchainAccountAddress(suite.chainB.GetContext(), path.EndpointA.ChannelConfig.PortID)
suite.Require().True(found)

validatorAddr := (sdk.ValAddress)(suite.chainB.Vals.Validators[0].Address)
msg := &stakingtypes.MsgDelegate{
DelegatorAddress: interchainAccountAddr,
ValidatorAddress: validatorAddr.String(),
Amount: sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(50000)), // Increase the amount so it triggers insufficient funds
}

data, err := types.SerializeCosmosTx(suite.chainA.GetSimApp().AppCodec(), []sdk.Msg{msg})
suite.Require().NoError(err)

icaPacketData := types.InterchainAccountPacketData{
Type: types.EXECUTE_TX,
Data: data,
}

packetData = icaPacketData.GetBytes()
},
false,
},
{
"interchain account successfully executes stakingtypes.MsgDelegate and stakingtypes.MsgUndelegate sequentially",
func() {
Expand Down

0 comments on commit 5bfa5f4

Please sign in to comment.