ruby-changes:55166
From: k0kubun <ko1@a...>
Date: Fri, 29 Mar 2019 21:00:51 +0900 (JST)
Subject: [ruby-changes:55166] k0kubun:r67373 (trunk): Add some more buffer for timeout check
k0kubun 2019-03-29 21:00:44 +0900 (Fri, 29 Mar 2019) New Revision: 67373 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67373 Log: Add some more buffer for timeout check This spec is unstable on our CI environment: https://gist.github.com/ko1/efa58acf4cd1d7b5bf1f63881537afe8 Modified files: trunk/spec/ruby/library/timeout/timeout_spec.rb Index: spec/ruby/library/timeout/timeout_spec.rb =================================================================== --- spec/ruby/library/timeout/timeout_spec.rb (revision 67372) +++ spec/ruby/library/timeout/timeout_spec.rb (revision 67373) @@ -26,7 +26,7 @@ describe "Timeout.timeout" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/timeout/timeout_spec.rb#L26 end end.should raise_error(StandardError) - (Time.now - before_time).should be_close(1.0, 0.5) + (Time.now - before_time).should be_close(1.0, 0.8) end it "returns back the last value in the block" do -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/