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.
This commit is contained in:
Winni Neessen 2024-10-02 13:10:10 +02:00
parent 9d70283af9
commit 761e205049
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -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
}