From 2d06925a3f4f24d1e36f4702d0c283ad9f43ad2d Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Fri, 10 Apr 2026 13:46:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20resolve=20go=20vet=20issu?= =?UTF-8?q?es=20with=20client.LastBody()=20method=20calls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/bdd/helpers/synchronization.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/bdd/helpers/synchronization.go b/pkg/bdd/helpers/synchronization.go index 864130f..96e75cf 100644 --- a/pkg/bdd/helpers/synchronization.go +++ b/pkg/bdd/helpers/synchronization.go @@ -39,7 +39,7 @@ func waitForConfigReload(client *testserver.Client, timeout time.Duration) error // Get initial config state var initialConfig string if err := client.Request("GET", "/api/config", nil); err == nil { - initialConfig = string(client.LastBody()) + initialConfig = string(client.GetLastBody()) } ticker := time.NewTicker(500 * time.Millisecond) @@ -52,7 +52,7 @@ func waitForConfigReload(client *testserver.Client, timeout time.Duration) error case <-ticker.C: // Check if config has changed if err := client.Request("GET", "/api/config", nil); err == nil { - currentConfig := string(client.LastBody()) + currentConfig := string(client.GetLastBody()) if currentConfig != initialConfig { log.Debug().Msg("Config reload detected") return nil @@ -119,7 +119,7 @@ func waitForJWTToken(client *testserver.Client, timeout time.Duration) error { return fmt.Errorf("JWT token not received after %v: %w", timeout, ctx.Err()) case <-ticker.C: // Check if we have a valid token in the last response - body := client.LastBody() + body := client.GetLastBody() if len(body) > 0 && isValidJWTToken(string(body)) { log.Debug().Msg("Valid JWT token received") return nil