From df19a9120ab379bac97006b1dfd62c8bf234b07a Mon Sep 17 00:00:00 2001 From: Softonik Date: Sat, 19 Jul 2025 13:13:46 +0300 Subject: [PATCH] =?UTF-8?q?SetTestDeadlockProtection=20-=20=D1=81=20=D0=BF?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D0=BC=D0=B5=D1=82=D1=80=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- godog_and_gomega_helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/godog_and_gomega_helpers.go b/godog_and_gomega_helpers.go index ae90ef9..2bc85c6 100644 --- a/godog_and_gomega_helpers.go +++ b/godog_and_gomega_helpers.go @@ -45,8 +45,8 @@ func Atof(in string) float64 { return res } -func SetTestDeadlockProtection() { - go checkTestTimeout(1 * time.Second) +func SetTestDeadlockProtection(seconds int) { + go checkTestTimeout(time.Duration(seconds) * time.Second) } func checkTestTimeout(t time.Duration) { <-time.After(t)