mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/drb/drbtest.rb: Skip test_06_timeout on Solaris10s
The test seems to have a race condition, which fails on very slow
machine like Solaris10s. So skip it.
In addition, this change restores timeout guard that was removed at
0660d7cb53
. This is because the test gets
stuck forever when something wrong occurs. It is better to fail the
test than stuck.
This commit is contained in:
parent
8b2e1ca10e
commit
53a7abe2cd
1 changed files with 9 additions and 6 deletions
|
@ -207,12 +207,15 @@ module DRbCore
|
|||
|
||||
def test_06_timeout
|
||||
skip if RUBY_PLATFORM.include?("armv7l-linux")
|
||||
ten = Onecky.new(10)
|
||||
assert_raise(Timeout::Error) do
|
||||
@there.do_timeout(ten)
|
||||
end
|
||||
assert_raise(Timeout::Error) do
|
||||
@there.do_timeout(ten)
|
||||
skip if RUBY_PLATFORM.include?("sparc-solaris2.10")
|
||||
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…
Reference in a new issue