ruby-changes:55849
From: Nobuyoshi <ko1@a...>
Date: Sun, 26 May 2019 18:24:55 +0900 (JST)
Subject: [ruby-changes:55849] Nobuyoshi Nakada: 5830889915 (trunk): test/ruby/test_notimp.rb: Use EnvUtil.timeout for timeout scale factor
https://git.ruby-lang.org/ruby.git/commit/?id=5830889915 From 58308899151ee3d49f8d9ef5c4e8d108d8822525 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 26 May 2019 18:24:06 +0900 Subject: test/ruby/test_notimp.rb: Use EnvUtil.timeout for timeout scale factor diff --git a/test/ruby/test_notimp.rb b/test/ruby/test_notimp.rb index 1f36030..b069154 100644 --- a/test/ruby/test_notimp.rb +++ b/test/ruby/test_notimp.rb @@ -36,7 +36,7 @@ class TestNotImplement < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_notimp.rb#L36 proc {`ps -l #{pid}`} end assert_nothing_raised(Timeout::Error, ps) do - Timeout.timeout(EnvUtil.apply_timeout_scale(20)) { + EnvUtil.timeout(20) { pid = fork {} Process.wait pid pid = nil -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/