Skip to content

Commit

Permalink
fix Cmd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Jun 3, 2022
1 parent 3cc294a commit 69d7f3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/gov/client/testutil/suite.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (s *IntegrationTestSuite) TestCmdParams() {
{
"json output",
[]string{fmt.Sprintf("--%s=json", tmcli.OutputFlag)},
`{"voting_params":{"voting_period":"172800000000000","expedited_voting_period":"86400000000000","proposal_voting_periods":null},"tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","expedited_threshold":"0.667000000000000000","veto_threshold":"0.334000000000000000"},"deposit_params":{"min_deposit":[{"denom":"stake","amount":"10000000"}],"max_deposit_period":"172800000000000"}}`,
`{"voting_params":{"voting_period":"172800000000000","proposal_voting_periods":null,"expedited_voting_period":"86400000000000"},"tally_params":{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","expedited_threshold":"0.667000000000000000","veto_threshold":"0.334000000000000000"},"deposit_params":{"min_deposit":[{"denom":"stake","amount":"10000000"}],"max_deposit_period":"172800000000000"}}`,
},
{
"text output",
Expand Down Expand Up @@ -140,15 +140,15 @@ func (s *IntegrationTestSuite) TestCmdParam() {
"voting",
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
},
`{"voting_period":"172800000000000","expedited_voting_period":"86400000000000","proposal_voting_periods":null}`,
`{"voting_period":"172800000000000","proposal_voting_periods":null,"expedited_voting_period":"86400000000000"}`,
},
{
"tally params",
[]string{
"tallying",
fmt.Sprintf("--%s=json", tmcli.OutputFlag),
},
`{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","expedited_threshold":"0.667000000000000000","veto_threshold":"0.334000000000000000"}`,
`{"quorum":"0.334000000000000000","threshold":"0.500000000000000000","veto_threshold":"0.334000000000000000","expedited_threshold":"0.667000000000000000"}`,
},
{
"deposit params",
Expand Down

0 comments on commit 69d7f3b

Please sign in to comment.