diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb index 5d0f0bfd34..9ef19b1bb3 100644 --- a/test/io/wait/test_io_wait.rb +++ b/test/io/wait/test_io_wait.rb @@ -165,12 +165,12 @@ class TestIOWait < Test::Unit::TestCase omit("Missing IO::WRITABLE!") unless IO.const_defined?(:WRITABLE) assert_equal IO::WRITABLE, @w.wait(IO::WRITABLE, 0) end - + def test_wait_mask_readable omit("Missing IO::READABLE!") unless IO.const_defined?(:READABLE) @w.write("Hello World\n" * 3) assert_equal IO::READABLE, @r.wait(IO::READABLE, 0) - + @r.gets assert_equal IO::READABLE, @r.wait(IO::READABLE, 0) end