diff options
Diffstat (limited to 'test/socket')
-rw-r--r-- | test/socket/test_nonblock.rb | 2 | ||||
-rw-r--r-- | test/socket/test_unix.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb index 665648a358..4e7807fa95 100644 --- a/test/socket/test_nonblock.rb +++ b/test/socket/test_nonblock.rb @@ -109,7 +109,7 @@ class TestSocketNonblock < Test::Unit::TestCase assert_raise(Errno::EAGAIN, Errno::EWOULDBLOCK, Errno::EINVAL) { s2.recvfrom_nonblock(100) } s2.send("aaa", 0, s1.getsockname) IO.select [s1] - mesg, sockaddr = s1.recvfrom_nonblock(100) + mesg, sockaddr = s1.recvfrom_nonblock(100) assert_equal("aaa", mesg) port, addr = Socket.unpack_sockaddr_in(sockaddr) s2_port, s2_addr = Socket.unpack_sockaddr_in(s2.getsockname) diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb index fdf0ce72ea..e18f5d6e95 100644 --- a/test/socket/test_unix.rb +++ b/test/socket/test_unix.rb @@ -445,7 +445,7 @@ class TestSocket_UNIXSocket < Test::Unit::TestCase serv = Socket.unix_server_socket(sockpath) c = Socket.unix(sockpath) s, = serv.accept - c.sendmsg("a", 0, nil, [:SOCKET, Socket::SCM_CREDS, ""]) + c.sendmsg("a", 0, nil, [:SOCKET, Socket::SCM_CREDS, ""]) msg, cliend_ai, rflags, cred = s.recvmsg assert_equal("a", msg) inspect = cred.inspect |