зеркало из https://github.com/github/ruby.git
test_rinda.rb: timeout
* test/rinda/test_rinda.rb (test_do_reply): stop if blocking including TupleSpace#write and RingServer#do_reply. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2e8cb7e5d3
Коммит
460f55945a
|
@ -567,6 +567,11 @@ class TestRingServer < Test::Unit::TestCase
|
|||
|
||||
callback = DRb::DRbObject.new callback
|
||||
|
||||
th = Thread.new(Thread.current) do |mth|
|
||||
sleep 15
|
||||
mth.raise unless called
|
||||
end
|
||||
|
||||
@ts.write [:lookup_ring, callback]
|
||||
|
||||
@rs.do_reply
|
||||
|
@ -580,6 +585,8 @@ class TestRingServer < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
assert_same @ts, called
|
||||
ensure
|
||||
th.kill if th
|
||||
end
|
||||
|
||||
def test_do_reply_local
|
||||
|
|
Загрузка…
Ссылка в новой задаче