summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-08 08:47:42 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-08 08:47:42 +0000
commit0deeb1aeb6ab9c35454a64a4da0eeb587a4f2c65 (patch)
treeda12dee567efd80b2108f96884c1f8a371d87777
parent74f94b3e6ebf15b76f3b357e754095412b006e94 (diff)
Call DRb.start_service with setup/teardown
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/rinda/test_rinda.rb5
1 files 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