From 5e5e2fa7508b69e7242ec007347cabe8ea676f79 Mon Sep 17 00:00:00 2001 From: Philip Offtermatt <57488781+p-offtermatt@users.noreply.github.com> Date: Tue, 1 Aug 2023 13:29:57 +0200 Subject: [PATCH] test: Fix mismatching code/comment and use WaitTime instead of sleep (#1174) Fix mismatching comment and use WaitTime instead of sleep --- tests/e2e/actions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/actions.go b/tests/e2e/actions.go index 3dd8fb704e..8faca43c0a 100644 --- a/tests/e2e/actions.go +++ b/tests/e2e/actions.go @@ -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",