[前][次][番号順一覧][スレッド一覧]

ruby-changes:59454

From: Nobuyoshi <ko1@a...>
Date: Tue, 24 Dec 2019 23:48:16 +0900 (JST)
Subject: [ruby-changes:59454] a3c5dbf291 (master): Scale sleeping times to wait for the OS operations

https://git.ruby-lang.org/ruby.git/commit/?id=a3c5dbf291

From a3c5dbf29191aa8622d8be7d990c4ac2f9392427 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 24 Dec 2019 14:56:17 +0900
Subject: Scale sleeping times to wait for the OS operations


diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb
index 4003f2a..6b4722e 100644
--- a/test/io/wait/test_io_wait.rb
+++ b/test/io/wait/test_io_wait.rb
@@ -172,4 +172,8 @@ private https://github.com/ruby/ruby/blob/trunk/test/io/wait/test_io_wait.rb#L172
       return written
     end while true
   end
+
+  def sleep(time)
+    super EnvUtil.apply_timeout_scale(time)
+  end
 end if IO.method_defined?(:wait)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]