Skip to content

Commit

Permalink
Fix delegation query test
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Jul 26, 2021
1 parent f3aeb56 commit 9a851f9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions x/staking/client/testutil/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,18 @@ func (s *IntegrationTestSuite) SetupSuite() {
val2 := s.network.Validators[1]

// redelegate
_, err = MsgRedelegateExec(
out, err := MsgRedelegateExec(
val.ClientCtx,
val.Address,
val.ValAddress,
val2.ValAddress,
unbond,
fmt.Sprintf("--%s=%d", flags.FlagGas, 202954), // 202954 is the required
fmt.Sprintf("--%s=%d", flags.FlagGas, 300000),
)
s.Require().NoError(err)
var txRes sdk.TxResponse
s.Require().NoError(val.ClientCtx.Codec.UnmarshalJSON(out.Bytes(), &txRes))
s.Require().Equal(uint32(0), txRes.Code)
_, err = s.network.WaitForHeight(1)
s.Require().NoError(err)
// unbonding
Expand Down

0 comments on commit 9a851f9

Please sign in to comment.