* test/rinda/test_rinda.rb: Fixed test failures in r39890 and r39890

due to stopping DRb service.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2013-03-23 19:13:37 +00:00
Родитель 90d9413391
Коммит 71012b3aa7
2 изменённых файлов: 5 добавлений и 4 удалений

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

@ -1,3 +1,8 @@
Sun Mar 24 04:13:27 2013 Eric Hodel <drbrain@segment7.net>
* test/rinda/test_rinda.rb: Fixed test failures in r39890 and r39890
due to stopping DRb service.
Sun Mar 24 03:34:02 2013 Eric Hodel <drbrain@segment7.net>
* lib/rinda/rinda.rb: Fixed loss of tuple when remote is alive but the

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

@ -478,13 +478,11 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
end
def test_take_bug_8215
DRb.stop_service
service = DRb.start_service(nil, @ts_base)
uri = service.uri
take = fork do
DRb.stop_service
DRb.start_service
ro = DRbObject.new_with_uri(uri)
ts = Rinda::TupleSpaceProxy.new(ro)
@ -500,7 +498,6 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
@ts_base.take([:barrier, :continue])
write = fork do
DRb.stop_service
DRb.start_service
ro = DRbObject.new_with_uri(uri)
ts = Rinda::TupleSpaceProxy.new(ro)
@ -514,7 +511,6 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
ensure
Process.kill("TERM", write) if write && status.nil?
Process.kill("TERM", take) if take
service.stop_service
end
@server = DRb.primary_server || DRb.start_service