mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Call DRb.start_service with setup/teardown
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
74f94b3e6e
commit
0deeb1aeb6
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue