summaryrefslogtreecommitdiff
path: root/test/io/wait/test_io_wait.rb
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-31 12:54:40 +0000
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-31 12:54:40 +0000
commit271c8f5d06bc92d3d3382fbddae616019555ed91 (patch)
tree2d877cee1f00857e2485bca890385b64eee506ee /test/io/wait/test_io_wait.rb
parentd7c7382f7afcba2d74454b24f9d1b9bb761c7242 (diff)
test_io_wait.rb: try to stabilize test_wait_readable
that randomly fails https://rubyci.org/logs/mswinci.japaneast.cloudapp.azure.com/vc12-x64/ruby-trunk/log/20181231T103312Z.fail.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/io/wait/test_io_wait.rb')
-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 2c1073d1044..50c06976b8c 100644
--- a/test/io/wait/test_io_wait.rb
+++ b/test/io/wait/test_io_wait.rb
@@ -83,7 +83,7 @@ class TestIOWait < Test::Unit::TestCase
def test_wait_readable
assert_nil @r.wait_readable(0)
@w.syswrite "."
- sleep 0.1
+ IO.select([@r])
assert_equal @r, @r.wait_readable(0)
end