summaryrefslogtreecommitdiff
path: root/test/io/wait
diff options
context:
space:
mode:
Diffstat (limited to 'test/io/wait')
-rw-r--r--test/io/wait/test_io_wait.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb
index 9d883aa821..7729d45526 100644
--- a/test/io/wait/test_io_wait.rb
+++ b/test/io/wait/test_io_wait.rb
@@ -31,7 +31,7 @@ class TestIOWait < Test::Unit::TestCase
def test_nread_buffered
@w.syswrite ".\n!"
- assert_equal ".\n", @r.read(2)
+ assert_equal ".\n", @r.gets
assert_equal 1, @r.nread
end