summaryrefslogtreecommitdiff
path: root/test/rinda
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-14 15:14:21 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-14 15:14:21 +0000
commita4d6fb5584162e4bf676ac4a075cca5f1b795e9c (patch)
tree0de58e9d1961ae3c529a40f4a524dda76304c12f /test/rinda
parent871d497c01299bf8144f64d9920e502f74f8c617 (diff)
Stop a global server of Rinda test
This server seemed to cause "leaked file descriptor" warnings. Moved it into the setup/teardown framework. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rinda')
-rw-r--r--test/rinda/test_rinda.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rinda/test_rinda.rb b/test/rinda/test_rinda.rb
index feff342349c..471b0dec580 100644
--- a/test/rinda/test_rinda.rb
+++ b/test/rinda/test_rinda.rb
@@ -465,6 +465,7 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
ThreadGroup.new.add(Thread.current)
@ts_base = Rinda::TupleSpace.new(1)
@ts = Rinda::TupleSpaceProxy.new(@ts_base)
+ @server = DRb.start_service("druby://localhost:0")
end
def teardown
# implementation-dependent
@@ -474,6 +475,7 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
th.join
end
}
+ @server.stop_service
end
def test_remote_array_and_hash
@@ -531,8 +533,6 @@ class TupleSpaceProxyTest < Test::Unit::TestCase
Process.wait(write) if write && status.nil?
Process.wait(take) if take
end
-
- @server = DRb.primary_server || DRb.start_service("druby://localhost:0")
end
module RingIPv6