summaryrefslogtreecommitdiff
path: root/test/socket
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket')
-rw-r--r--test/socket/test_nonblock.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/socket/test_nonblock.rb b/test/socket/test_nonblock.rb
index c26c5ef..0853a15 100644
--- a/test/socket/test_nonblock.rb
+++ b/test/socket/test_nonblock.rb
@@ -290,7 +290,7 @@ class TestSocketNonblock < Test::Unit::TestCase
udp_pair do |s1, s2|
assert_equal :wait_readable, s1.recvfrom_nonblock(100, exception: false)
s2.send("aaa", 0)
- assert s1.wait_readable
+ assert_predicate s1, :wait_readable
mesg, inet_addr = s1.recvfrom_nonblock(100, exception: false)
assert_equal(4, inet_addr.length)
assert_equal("aaa", mesg)
@@ -358,7 +358,7 @@ class TestSocketNonblock < Test::Unit::TestCase
tcp_pair {|c, s|
assert_equal :wait_readable, c.recv_nonblock(11, exception: false)
s.write('HI')
- assert c.wait_readable
+ assert_predicate c, :wait_readable
assert_equal 'HI', c.recv_nonblock(11, exception: false)
assert_equal :wait_readable, c.recv_nonblock(11, exception: false)
}