summaryrefslogtreecommitdiff
path: root/test/drb/drbtest.rb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-01 16:20:35 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-01 16:20:35 +0000
commitb7e70f049729cc6a7f55f409618d9c3f169a1cb8 (patch)
tree4fa3596452824f4cabb8dec9bd82061201594585 /test/drb/drbtest.rb
parent571aa4db39067f319ab5a8d7554f6d0985133a11 (diff)
add method DRbService.ext_service
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb/drbtest.rb')
-rw-r--r--test/drb/drbtest.rb13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb
index d2335dd53fe..89551df005f 100644
--- a/test/drb/drbtest.rb
+++ b/test/drb/drbtest.rb
@@ -30,6 +30,11 @@ class DRbService
def self.server
@server || @@server
end
+ def self.ext_service(name)
+ timeout(5, RuntimeError) do
+ manager.service(name)
+ end
+ end
end
class Onecky
@@ -65,12 +70,12 @@ end
module DRbCore
def setup
- @ext = DRbService.manager.service('ut_drb.rb')
+ @ext = DRbService.ext_service('ut_drb.rb')
@there = @ext.front
end
def teardown
- @ext.stop_service
+ @ext.stop_service if @ext
end
def test_00_DRbObject
@@ -248,12 +253,12 @@ end
module DRbAry
def setup
- @ext = DRbService.manager.service('ut_array.rb')
+ @ext = DRbService.ext_service('ut_array.rb')
@there = @ext.front
end
def teardown
- @ext.stop_service
+ @ext.stop_service if @ext
end
def test_01