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 18:53:14 +0900
commita3c5dbf29191aa8622d8be7d990c4ac2f9392427 (patch)
treef4aecb467c15a12a7992d1899ac68eb2eaecc4fc /test/io/wait/test_io_wait.rb
parent7758849cb5432ae974f616668f9c9bab415bb18a (diff)
Scale sleeping times to wait for the OS operations
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 4003f2aff10..6b4722e1be0 100644
--- a/test/io/wait/test_io_wait.rb
+++ b/test/io/wait/test_io_wait.rb
@@ -172,4 +172,8 @@ private
return written
end while true
end
+
+ def sleep(time)
+ super EnvUtil.apply_timeout_scale(time)
+ end
end if IO.method_defined?(:wait)