Skip to content

Commit

Permalink
chore: add a test to the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-forbes committed Aug 31, 2023
1 parent e11fe46 commit 3176583
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions x/auth/vesting/client/testutil/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,21 @@ func (s *IntegrationTestSuite) TestNewMsgCreateVestingAccountCmd() {
expectedCode: 0,
respType: &sdk.TxResponse{},
},
"create a continuous vesting account with start time": {
args: []string{
sdk.AccAddress("addr2_______________").String(),
sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(10))).String(),
"4070908800",
fmt.Sprintf("--%s=%d", cli.FlagStartTime, 4070808800),
fmt.Sprintf("--%s=%s", flags.FlagFrom, val.Address),
fmt.Sprintf("--%s=true", flags.FlagSkipConfirmation),
fmt.Sprintf("--%s=%s", flags.FlagBroadcastMode, flags.BroadcastSync),
fmt.Sprintf("--%s=%s", flags.FlagFees, sdk.NewCoins(sdk.NewCoin(s.cfg.BondDenom, sdk.NewInt(10))).String()),
},
expectErr: false,
expectedCode: 0,
respType: &sdk.TxResponse{},
},
"create a delayed vesting account": {
args: []string{
sdk.AccAddress("addr3_______________").String(),
Expand Down

0 comments on commit 3176583

Please sign in to comment.