Fix timeout message in client_test.go

Updated the skip message to accurately reflect the timeout reason when closing the test server connection. This improves the clarity of the error reporting in tests.
This commit is contained in:
Winni Neessen 2024-10-27 12:11:48 +01:00
parent b510d2654c
commit 78ee1a2a81
Signed by: wneessen
GPG key ID: 385AC9889632126E

View file

@ -2581,7 +2581,7 @@ func TestClient_Send(t *testing.T) {
if err := client.Close(); err != nil { if err := client.Close(); err != nil {
var netErr net.Error var netErr net.Error
if errors.As(err, &netErr) && netErr.Timeout() { if errors.As(err, &netErr) && netErr.Timeout() {
t.Skip("failed to connect to the test server due to timeout") t.Skip("failed to close the test server connection due to timeout")
} }
t.Errorf("failed to close client: %s", err) t.Errorf("failed to close client: %s", err)
} }