Skip to content

Commit 5bfa5f4

Browse files
committed
removing staking test for insufficient funds
1 parent 883be51 commit 5bfa5f4

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

modules/apps/27-interchain-accounts/keeper/relay_test.go

-25
Original file line numberDiff line numberDiff line change
@@ -212,31 +212,6 @@ func (suite *KeeperTestSuite) TestOnRecvPacket() {
212212
},
213213
true,
214214
},
215-
{
216-
"interchain account fails to execute stakingtypes.MsgDelegate - insufficient funds",
217-
func() {
218-
interchainAccountAddr, found := suite.chainB.GetSimApp().ICAKeeper.GetInterchainAccountAddress(suite.chainB.GetContext(), path.EndpointA.ChannelConfig.PortID)
219-
suite.Require().True(found)
220-
221-
validatorAddr := (sdk.ValAddress)(suite.chainB.Vals.Validators[0].Address)
222-
msg := &stakingtypes.MsgDelegate{
223-
DelegatorAddress: interchainAccountAddr,
224-
ValidatorAddress: validatorAddr.String(),
225-
Amount: sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(50000)), // Increase the amount so it triggers insufficient funds
226-
}
227-
228-
data, err := types.SerializeCosmosTx(suite.chainA.GetSimApp().AppCodec(), []sdk.Msg{msg})
229-
suite.Require().NoError(err)
230-
231-
icaPacketData := types.InterchainAccountPacketData{
232-
Type: types.EXECUTE_TX,
233-
Data: data,
234-
}
235-
236-
packetData = icaPacketData.GetBytes()
237-
},
238-
false,
239-
},
240215
{
241216
"interchain account successfully executes stakingtypes.MsgDelegate and stakingtypes.MsgUndelegate sequentially",
242217
func() {

0 commit comments

Comments
 (0)