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:
parent
119068f90c
commit
df58e74e02
1 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue