diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/socket/test_nonblock.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb index 6912046879..98de00eed9 100644 --- a/test/socket/test_nonblock.rb +++ b/test/socket/test_nonblock.rb @@ -69,6 +69,8 @@ class TestSocketNonblock < Test::Unit::TestCase assert_equal :wait_writable, rv end assert_equal([ [], [c], [] ], IO.select(nil, [c], nil, 60)) + assert_equal(0, c.connect_nonblock(servaddr, exception: false), + 'there should be no EISCONN error') s, sockaddr = serv.accept assert_equal(Socket.unpack_sockaddr_in(c.getsockname), Socket.unpack_sockaddr_in(sockaddr)) |