зеркало из https://github.com/github/ruby.git
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:
Родитель
239d44a19c
Коммит
5ef141e3e9
|
@ -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>
|
Mon Jan 3 07:27:46 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||||
|
|
||||||
* lib/webrick/httpauth/htpasswd.rb (WEBrick::Htpasswd#reload):
|
* lib/webrick/httpauth/htpasswd.rb (WEBrick::Htpasswd#reload):
|
||||||
|
|
|
@ -31,7 +31,7 @@ class DRbService
|
||||||
@server || @@server
|
@server || @@server
|
||||||
end
|
end
|
||||||
def self.ext_service(name)
|
def self.ext_service(name)
|
||||||
timeout(5, RuntimeError) do
|
timeout(10, RuntimeError) do
|
||||||
manager.service(name)
|
manager.service(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -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
|
||||||
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
|
class TestDRbSafe1 < TestDRbAry
|
||||||
def setup
|
def setup
|
||||||
@ext = DRbService.ext_service('ut_safe1.rb')
|
@ext = DRbService.ext_service('ut_safe1.rb')
|
||||||
|
|
Загрузка…
Ссылка в новой задаче