From 446915d5ee132d934e78a323a27487d60ecd4747 Mon Sep 17 00:00:00 2001 From: Kharec Date: Mon, 17 Nov 2025 15:59:24 +0100 Subject: [PATCH] feat: modernize loop --- internal/e2e/auth_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/e2e/auth_test.go b/internal/e2e/auth_test.go index e6f1ac7..7b3747e 100644 --- a/internal/e2e/auth_test.go +++ b/internal/e2e/auth_test.go @@ -11,11 +11,12 @@ import ( "testing" "time" - "github.com/golang-jwt/jwt/v5" "goyco/internal/config" "goyco/internal/repositories" "goyco/internal/services" "goyco/internal/testutils" + + "github.com/golang-jwt/jwt/v5" ) func TestE2E_APIRegistration(t *testing.T) { @@ -377,7 +378,7 @@ func TestE2E_RefreshTokenFlow(t *testing.T) { for i := range 3 { var statusCode int var newAccessToken string - for attempt := 0; attempt < 3; attempt++ { + for attempt := range 3 { newAccessToken, statusCode = authClient.RefreshAccessToken(t, testutils.GenerateTestIP()) if statusCode != http.StatusTooManyRequests { break