ruby-changes:54818
From: naruse <ko1@a...>
Date: Fri, 8 Feb 2019 17:47:47 +0900 (JST)
Subject: [ruby-changes:54818] naruse:r67037 (trunk): Call DRb.start_service with setup/teardown
naruse 2019-02-08 17:47:42 +0900 (Fri, 08 Feb 2019) New Revision: 67037 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67037 Log: Call DRb.start_service with setup/teardown Modified files: trunk/test/rinda/test_rinda.rb Index: test/rinda/test_rinda.rb =================================================================== --- test/rinda/test_rinda.rb (revision 67036) +++ test/rinda/test_rinda.rb (revision 67037) @@ -8,9 +8,6 @@ require 'rinda/tuplespace' https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L8 require 'timeout' require 'singleton' -DRb.start_service - - module Rinda class MockClock @@ -622,6 +619,7 @@ class TestRingServer < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L619 @ts = Rinda::TupleSpace.new @rs = Rinda::RingServer.new(@ts, [], @port) + @server = DRb.start_service("druby://localhost:0") end def teardown # implementation-dependent @@ -632,6 +630,7 @@ class TestRingServer < Test::Unit::TestC https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L630 end } @rs.shutdown + @server.stop_service end def test_do_reply -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/