summaryrefslogtreecommitdiff
path: root/test/socket/test_tcp.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_tcp.rb')
-rw-r--r--test/socket/test_tcp.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_tcp.rb b/test/socket/test_tcp.rb
index a6c332c..5e3528e 100644
--- a/test/socket/test_tcp.rb
+++ b/test/socket/test_tcp.rb
@@ -79,9 +79,9 @@ class TestSocket_TCPSocket < Test::Unit::TestCase
def test_accept_nonblock
TCPServer.open("localhost", 0) {|svr|
- assert_raises(IO::WaitReadable) { svr.accept_nonblock }
+ assert_raise(IO::WaitReadable) { svr.accept_nonblock }
assert_equal :wait_readable, svr.accept_nonblock(exception: false)
- assert_raises(IO::WaitReadable) { svr.accept_nonblock(exception: true) }
+ assert_raise(IO::WaitReadable) { svr.accept_nonblock(exception: true) }
}
end
end if defined?(TCPSocket)