diff --git a/tests/e2e/actions.go b/tests/e2e/actions.go index 090fe64c28..b2614c4e5e 100644 --- a/tests/e2e/actions.go +++ b/tests/e2e/actions.go @@ -1974,17 +1974,16 @@ func (tr TestRun) waitForSlashMeterReplenishment( } } -type slashPacketRetryAction struct { +type WaitTimeAction struct { consumer chainID + waitTime time.Duration } -func (tr TestRun) waitForSlashRetry( - action slashPacketRetryAction, +func (tr TestRun) waitForTime( + action WaitTimeAction, verbose bool, ) { - // Retry delay period is set to 30 seconds, see config.go - // wait this amount of time to elapse the period - tr.WaitTime(30 * time.Second) + tr.WaitTime(action.waitTime) } // GetPathNameForGorelayer returns the name of the path between two given chains used by Gorelayer. diff --git a/tests/e2e/main.go b/tests/e2e/main.go index 519834b6e1..e6a8f7489b 100644 --- a/tests/e2e/main.go +++ b/tests/e2e/main.go @@ -244,8 +244,8 @@ func (tr *TestRun) runStep(step Step, verbose bool) { tr.assignConsumerPubKey(action, verbose) case slashMeterReplenishmentAction: tr.waitForSlashMeterReplenishment(action, verbose) - case slashPacketRetryAction: - tr.waitForSlashRetry(action, verbose) + case WaitTimeAction: + tr.waitForTime(action, verbose) case startRelayerAction: tr.startRelayer(action, verbose) case registerConsumerRewardDenomAction: diff --git a/tests/e2e/steps_downtime.go b/tests/e2e/steps_downtime.go index ab8f4742b0..36a9716125 100644 --- a/tests/e2e/steps_downtime.go +++ b/tests/e2e/steps_downtime.go @@ -404,10 +404,13 @@ func stepsThrottledDowntime(consumerName string) []Step { }, }, }, - // Wait for retry delay period to pass + // Wait for retry delay period to pass. + // Retry delay period is set to 30 seconds, see config.go, + // wait this amount of time to elapse the period. { - action: slashPacketRetryAction{ + action: WaitTimeAction{ consumer: chainID(consumerName), + waitTime: 30 * time.Second, }, state: State{ chainID("provi"): ChainState{