diff options
| author | Misaki Shioi <31817032+shioimm@users.noreply.github.com> | 2024-11-12 19:14:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-12 19:14:05 +0900 |
| commit | fee706d9dd52d7f0444357259f33d335f21c980b (patch) | |
| tree | 16bac6f4251ce23840ae1bf1140d1006447c778b /include/ruby/missing.h | |
| parent | dc08d6e9172c655c770d91c5d5fba5beda431a7d (diff) | |
Allow Net::HTTP#request to raise Net::OpenTimeout (#12062)
with a TCPSoerver that is only listening
to avoid AssertionFailedError on Ubuntu.
---
The tests such as
`TestNetHTTP_v1_2_chunked#test_timeout_during_non_chunked_streamed_HTTP_session_write`
expect to raise a `Net::WriteTimeout` due to a failure in writing to the server.
However, on Ubuntu environments,
the server immediately returns a "Connection Refused" in such cases.
The socket created with `TCPSocket.new` that supports HEv2 catches this immediately
and raises a `Net::OpenTimeout`.
As a result, these tests fail due to raising a different exception than expected.
This PR adds `Net::OpenTimeout` asexceptions to avoid these test failures.
Notes
Notes:
Merged-By: shioimm <shioi.mm@gmail.com>
Diffstat (limited to 'include/ruby/missing.h')
0 files changed, 0 insertions, 0 deletions
