mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_nonblock.rb: fix failure on OSX
* test/socket/test_nonblock.rb (test_recvfrom_nonblock_no_exception): no destination to already connected socket. fix failure on OSX. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cbffea05bd
commit
85d5df5528
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ class TestSocketNonblock < Test::Unit::TestCase
|
|||
def test_recvfrom_nonblock_no_exception
|
||||
udp_pair do |s1, s2|
|
||||
assert_equal :wait_readable, s1.recvfrom_nonblock(100, exception: false)
|
||||
s2.send("aaa", 0, s1.getsockname)
|
||||
s2.send("aaa", 0)
|
||||
assert s1.wait_readable
|
||||
mesg, inet_addr = s1.recvfrom_nonblock(100, exception: false)
|
||||
assert_equal(4, inet_addr.length)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue