Skip to content

Commit

Permalink
move short gov to spec test
Browse files Browse the repository at this point in the history
  • Loading branch information
hieuvubk committed Oct 9, 2024
1 parent 7cc6b64 commit 8efc28c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions tests/systemtests/gov_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ func TestQueryDeposit(t *testing.T) {

sut.ResetChain(t)
cli := NewCLIWrapper(t, sut, verbose)
// Set short period
sut.ModifyGenesisJSON(t, SetGovVotingPeriod(t, time.Second*8))

// get validator address
valAddr := gjson.Get(cli.Keys("keys", "list"), "0.address").String()
Expand Down
5 changes: 0 additions & 5 deletions tests/systemtests/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,6 @@ func (s *SystemUnderTest) SetupChain() {
if err != nil {
panic(fmt.Sprintf("failed to set block max gas: %s", err))
}
// Short period for gov
genesisBz, err = sjson.SetRawBytes(genesisBz, "app_state.gov.params.voting_period", []byte(fmt.Sprintf(`"%s"`, "8s")))
if err != nil {
panic(fmt.Sprintf("failed to set regular voting period: %s", err))
}
// update expedited voting period to avoid validation error
genesisBz, err = sjson.SetRawBytes(genesisBz, "app_state.gov.params.expedited_voting_period", []byte(fmt.Sprintf(`"%s"`, "7s")))
if err != nil {
Expand Down

0 comments on commit 8efc28c

Please sign in to comment.