ruby-changes:53284
From: naruse <ko1@a...>
Date: Fri, 2 Nov 2018 22:30:54 +0900 (JST)
Subject: [ruby-changes:53284] naruse:r65499 (trunk): Add timeout
naruse 2018-11-02 22:30:48 +0900 (Fri, 02 Nov 2018) New Revision: 65499 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65499 Log: Add timeout it breaks armv7 CI. Modified files: trunk/test/drb/drbtest.rb Index: test/drb/drbtest.rb =================================================================== --- test/drb/drbtest.rb (revision 65498) +++ test/drb/drbtest.rb (revision 65499) @@ -206,12 +206,14 @@ module DRbCore https://github.com/ruby/ruby/blob/trunk/test/drb/drbtest.rb#L206 end def test_06_timeout - ten = Onecky.new(10) - assert_raise(Timeout::Error) do - @there.do_timeout(ten) - end - assert_raise(Timeout::Error) do - @there.do_timeout(ten) + Timeout.timeout(60) do + ten = Onecky.new(10) + assert_raise(Timeout::Error) do + @there.do_timeout(ten) + end + assert_raise(Timeout::Error) do + @there.do_timeout(ten) + end end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/