Skip to content

Commit

Permalink
increase slashing window for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Sep 12, 2024
1 parent 804b53b commit 79d5856
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,7 @@ func (tr Chain) invokeDowntimeSlash(action DowntimeSlashAction, verbose bool) {
// Bring validator down
tr.setValidatorDowntime(action.Chain, action.Validator, true, verbose)
// Wait appropriate amount of blocks for validator to be slashed
tr.waitBlocks(action.Chain, 11, 3*time.Minute)
tr.waitBlocks(action.Chain, 16, 3*time.Minute)
// Bring validator back up
tr.setValidatorDowntime(action.Chain, action.Validator, false, verbose)
}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func DefaultTestConfig() TestConfig {
IpPrefix: "7.7.8",
VotingWaitTime: 20,
GenesisChanges: ".app_state.gov.params.voting_period = \"20s\" | " +
".app_state.slashing.params.signed_blocks_window = \"20\" | " +
".app_state.slashing.params.signed_blocks_window = \"30\" | " +
".app_state.slashing.params.min_signed_per_window = \"0.500000000000000000\" | " +
".app_state.slashing.params.downtime_jail_duration = \"60s\" | " +
".app_state.slashing.params.slash_fraction_downtime = \"0.010000000000000000\"",
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/test_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (tr *TestRunner) Run() error {
}

tr.result.Passed()
err = tr.teardownEnvironment()
// err = tr.teardownEnvironment()
fmt.Printf("==========================================\n")
return err
}
Expand Down

0 comments on commit 79d5856

Please sign in to comment.