summaryrefslogtreecommitdiff
path: root/test/io/wait/test_io_wait.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-24 14:56:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-24 14:56:17 +0900
commite57d6194218efc73c30f3fed9dd321d2e357030b (patch)
tree36033d75905fc3faf27ac3ec47ff2aa9311a5873 /test/io/wait/test_io_wait.rb
parentadf498b84f56e57b74b72a3ddcc512f6d2078cef (diff)
Scale sleeping times
Diffstat (limited to 'test/io/wait/test_io_wait.rb')
-rw-r--r--test/io/wait/test_io_wait.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb
index 50c06976b8c..2d35fbb4e0a 100644
--- a/test/io/wait/test_io_wait.rb
+++ b/test/io/wait/test_io_wait.rb
@@ -164,4 +164,8 @@ private
return written
end while true
end
+
+ def sleep(time)
+ super EnvUtil.apply_timeout_scale(time)
+ end
end if IO.method_defined?(:wait)