diff --git a/client_test.go b/client_test.go index 70032ba..cebadc5 100644 --- a/client_test.go +++ b/client_test.go @@ -2579,6 +2579,10 @@ func TestClient_Send(t *testing.T) { } t.Cleanup(func() { if err := client.Close(); err != nil { + var netErr net.Error + if errors.As(err, &netErr) && netErr.Timeout() { + t.Skip("failed to connect to the test server due to timeout") + } t.Errorf("failed to close client: %s", err) } })