From 761e20504969e3f0e766333853d1361b0abd1387 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Wed, 2 Oct 2024 13:10:10 +0200 Subject: [PATCH] Fix client connection test error handling Changed variable assignment in the test to fix error handling. This ensures the error is properly caught and reported during the client connection process. --- client_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_test.go b/client_test.go index 35fca38..53174f2 100644 --- a/client_test.go +++ b/client_test.go @@ -620,7 +620,7 @@ func TestClient_DialWithContext(t *testing.T) { t.Skipf("failed to create test client: %s. Skipping tests", err) } ctx := context.Background() - if err := c.DialWithContext(ctx); err != nil { + if err = c.DialWithContext(ctx); err != nil { t.Errorf("failed to dial with context: %s", err) return }