mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
move TestDRbReusePort to new file [ruby-dev:25238]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
239d44a19c
commit
5ef141e3e9
4 changed files with 34 additions and 9 deletions
|
@ -1,3 +1,12 @@
|
|||
Mon Jan 3 11:03:37 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
|
||||
* test/drb/test_drb.rb: move TestDRbReusePort to new file.
|
||||
[ruby-dev:25238]
|
||||
|
||||
* test/drb/drbtest.rb: change timeout.
|
||||
|
||||
* test/drb/ignore_test_drb.rb: new file.
|
||||
|
||||
Mon Jan 3 07:27:46 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* lib/webrick/httpauth/htpasswd.rb (WEBrick::Htpasswd#reload):
|
||||
|
|
|
@ -31,7 +31,7 @@ class DRbService
|
|||
@server || @@server
|
||||
end
|
||||
def self.ext_service(name)
|
||||
timeout(5, RuntimeError) do
|
||||
timeout(10, RuntimeError) do
|
||||
manager.service(name)
|
||||
end
|
||||
end
|
||||
|
|
24
test/drb/ignore_test_drb.rb
Normal file
24
test/drb/ignore_test_drb.rb
Normal file
|
@ -0,0 +1,24 @@
|
|||
require 'drbtest'
|
||||
|
||||
class TestDRbReusePort < Test::Unit::TestCase
|
||||
include DRbAry
|
||||
|
||||
def setup
|
||||
@ext = DRbService.ext_service('ut_port.rb')
|
||||
@there = @ext.front
|
||||
end
|
||||
|
||||
def teardown
|
||||
return unless @ext
|
||||
@ext.stop_service
|
||||
while true
|
||||
sleep 0.1
|
||||
begin
|
||||
@ext.alive?
|
||||
rescue DRb::DRbConnError
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
@ -191,14 +191,6 @@ class TestDRbMServer < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
class TestDRbReusePort < TestDRbAry
|
||||
def setup
|
||||
sleep 1.2
|
||||
@ext = DRbService.ext_service('ut_port.rb')
|
||||
@there = @ext.front
|
||||
end
|
||||
end
|
||||
|
||||
class TestDRbSafe1 < TestDRbAry
|
||||
def setup
|
||||
@ext = DRbService.ext_service('ut_safe1.rb')
|
||||
|
|
Loading…
Add table
Reference in a new issue