summaryrefslogtreecommitdiff
path: root/test/socket/test_nonblock.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-18 09:41:37 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-18 09:41:37 +0000
commit903c0f55e97e73bbd78ad81251be6d923c8ccf15 (patch)
tree37951e12afb899734d0ac421b210d91867f4af02 /test/socket/test_nonblock.rb
parent058823440d95446813d10afaf8ef79394bda386f (diff)
test_nonblock.rb: refine failure message
* test/socket/test_nonblock.rb (test_accept_nonblock): refine assertion for better failure message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/socket/test_nonblock.rb')
-rw-r--r--test/socket/test_nonblock.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb
index 526825269e..0109d19636 100644
--- a/test/socket/test_nonblock.rb
+++ b/test/socket/test_nonblock.rb
@@ -26,7 +26,7 @@ class TestSocketNonblock < Test::Unit::TestCase
end
assert_equal(Socket.unpack_sockaddr_in(c.getsockname), Socket.unpack_sockaddr_in(sockaddr))
if s.respond_to?(:nonblock?)
- assert s.nonblock?, 'accepted socket is non-blocking'
+ assert_predicate(s, :nonblock?, 'accepted socket is non-blocking')
end
ensure
serv.close if serv