1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add timeout

it breaks armv7 CI.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2018-11-02 13:30:48 +00:00
parent 119068f90c
commit df58e74e02

View file

@ -206,12 +206,14 @@ module DRbCore
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