diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-10-07 21:48:38 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 21:48:38 +1300 |
commit | e4f91bbdbaa6ab3125f24967414ac5300bb244f5 (patch) | |
tree | 575f8febdd50601522c5e5ec72f3436139304537 /test/socket | |
parent | e76217a7f3957c9cea52832c2f4237130411f7dd (diff) |
Add IO#timeout attribute and use it for blocking IO operations. (#5653)
Notes
Notes:
Merged-By: ioquatix <samuel@codeotaku.com>
Diffstat (limited to 'test/socket')
-rw-r--r-- | test/socket/test_tcp.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_tcp.rb b/test/socket/test_tcp.rb index 9aa716f7ec..83ebea1b7a 100644 --- a/test/socket/test_tcp.rb +++ b/test/socket/test_tcp.rb @@ -70,7 +70,7 @@ class TestSocket_TCPSocket < Test::Unit::TestCase end def test_initialize_connect_timeout - assert_raise(Errno::ETIMEDOUT) do + assert_raise(IO::TimeoutError) do TCPSocket.new("192.0.2.1", 80, connect_timeout: 0) end end |