mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
remove TestDRbReusePort, resuce sleep, add DRbService.ext_service
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
880f2d7dea
commit
ef46698d76
6 changed files with 39 additions and 49 deletions
|
@ -20,7 +20,7 @@ end
|
|||
class TestDRbUNIXCore < Test::Unit::TestCase
|
||||
include DRbCore
|
||||
def setup
|
||||
@ext = DRbUNIXService.manager.service('ut_drb_drbunix.rb')
|
||||
@ext = DRbUNIXService.ext_service('ut_drb_drbunix.rb')
|
||||
@there = @ext.front
|
||||
end
|
||||
|
||||
|
@ -32,23 +32,12 @@ class TestDRbUNIXCore < Test::Unit::TestCase
|
|||
|
||||
def test_05_eq
|
||||
end
|
||||
|
||||
def test_06_timeout
|
||||
ten = Onecky.new(3)
|
||||
assert_raises(TimeoutError) do
|
||||
@there.do_timeout(ten)
|
||||
end
|
||||
assert_raises(TimeoutError) do
|
||||
@there.do_timeout(ten)
|
||||
end
|
||||
sleep 3
|
||||
end
|
||||
end
|
||||
|
||||
class TestDRbUNIXAry < Test::Unit::TestCase
|
||||
include DRbAry
|
||||
def setup
|
||||
@ext = DRbUNIXService.manager.service('ut_array_drbunix.rb')
|
||||
@ext = DRbUNIXService.ext_service('ut_array_drbunix.rb')
|
||||
@there = @ext.front
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue