From 0deeb1aeb6ab9c35454a64a4da0eeb587a4f2c65 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 8 Feb 2019 08:47:42 +0000 Subject: Call DRb.start_service with setup/teardown git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rinda/test_rinda.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb index 3e569dca9e..0d1eafcb36 100644 --- a/test/rinda/test_rinda.rb +++ b/test/rinda/test_rinda.rb @@ -8,9 +8,6 @@ require 'rinda/tuplespace' require 'timeout' require 'singleton' -DRb.start_service - - module Rinda class MockClock @@ -622,6 +619,7 @@ class TestRingServer < Test::Unit::TestCase @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::TestCase end } @rs.shutdown + @server.stop_service end def test_do_reply -- cgit v1.2.3