Skip to content

Commit

Permalink
test: Fix mismatching code/comment and use WaitTime instead of sleep (#…
Browse files Browse the repository at this point in the history
…1174)

Fix mismatching comment and use WaitTime instead of sleep
  • Loading branch information
p-offtermatt committed Aug 1, 2023
1 parent 7484dbc commit 5e5e2fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1655,8 +1655,8 @@ type unjailValidatorAction struct {

// Sends an unjail transaction to the provider chain
func (tr TestRun) unjailValidator(action unjailValidatorAction, verbose bool) {
// wait a block to be sure downtime_jail_duration has elapsed
time.Sleep(61 * time.Second)
// wait until downtime_jail_duration has elapsed, to make sure the validator can be unjailed
tr.WaitTime(61 * time.Second)

//#nosec G204 -- Bypass linter warning for spawning subprocess with cmd arguments.
cmd := exec.Command("docker", "exec",
Expand Down

0 comments on commit 5e5e2fa

Please sign in to comment.