* 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:
nobu 2014-01-15 23:18:59 +00:00
Родитель 2e8cb7e5d3
Коммит 460f55945a
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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