1
0
Fork 0
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:
Yusuke Endoh 2019-09-02 22:30:12 +09:00
parent 8b2e1ca10e
commit 53a7abe2cd

View file

@ -207,6 +207,8 @@ module DRbCore
def test_06_timeout
skip if RUBY_PLATFORM.include?("armv7l-linux")
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)
@ -215,6 +217,7 @@ module DRbCore
@there.do_timeout(ten)
end
end
end
def test_07_private_missing
e = assert_raise(NoMethodError) {