summaryrefslogtreecommitdiff
path: root/test/socket/test_socket.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket/test_socket.rb')
-rw-r--r--test/socket/test_socket.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_socket.rb b/test/socket/test_socket.rb
index 1db0ea2..3682338 100644
--- a/test/socket/test_socket.rb
+++ b/test/socket/test_socket.rb
@@ -78,7 +78,7 @@ class TestSocket < Test::Unit::TestCase
port, = Socket.unpack_sockaddr_in(addr)
Socket.open(Socket::AF_INET, Socket::SOCK_STREAM, 0) {|s|
- e = assert_raises(Errno::EADDRINUSE) do
+ e = assert_raise(Errno::EADDRINUSE) do
s.bind(Socket.sockaddr_in(port, "127.0.0.1"))
end
@@ -556,7 +556,7 @@ class TestSocket < Test::Unit::TestCase
# some platforms may not timeout when the listener queue overflows,
# but we know Linux does with the default listen backlog of SOMAXCONN for
# TCPServer.
- assert_raises(Errno::ETIMEDOUT) do
+ assert_raise(Errno::ETIMEDOUT) do
(Socket::SOMAXCONN*2).times do |i|
sock = Socket.tcp(host, port, :connect_timeout => 0)
assert_equal sock, IO.select(nil, [ sock ])[1][0],