use DRbService.ext_service. reduce sleep
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1b27958bfb
commit
940aa83194
@ -1,3 +1,8 @@
|
|||||||
|
Tue Jan 4 21:25:43 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||||
|
|
||||||
|
* test/drb/{test_drbssl.rb,test_drbunix.rb,ut_drb.rb}: use
|
||||||
|
DRbService.ext_service. reduce sleep.
|
||||||
|
|
||||||
Mon Jan 3 14:01:54 2005 Tanaka Akira <akr@m17n.org>
|
Mon Jan 3 14:01:54 2005 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
* random.c (random_seed): don't use /dev/urandom if it is not
|
* random.c (random_seed): don't use /dev/urandom if it is not
|
||||||
|
@ -48,18 +48,6 @@ class TestDRbSSLCore < Test::Unit::TestCase
|
|||||||
|
|
||||||
def test_05_eq
|
def test_05_eq
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
class TestDRbSSLAry < Test::Unit::TestCase
|
class TestDRbSSLAry < Test::Unit::TestCase
|
||||||
|
@ -20,7 +20,7 @@ end
|
|||||||
class TestDRbUNIXCore < Test::Unit::TestCase
|
class TestDRbUNIXCore < Test::Unit::TestCase
|
||||||
include DRbCore
|
include DRbCore
|
||||||
def setup
|
def setup
|
||||||
@ext = DRbUNIXService.manager.service('ut_drb_drbunix.rb')
|
@ext = DRbUNIXService.ext_service('ut_drb_drbunix.rb')
|
||||||
@there = @ext.front
|
@there = @ext.front
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -32,23 +32,12 @@ class TestDRbUNIXCore < Test::Unit::TestCase
|
|||||||
|
|
||||||
def test_05_eq
|
def test_05_eq
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
class TestDRbUNIXAry < Test::Unit::TestCase
|
class TestDRbUNIXAry < Test::Unit::TestCase
|
||||||
include DRbAry
|
include DRbAry
|
||||||
def setup
|
def setup
|
||||||
@ext = DRbUNIXService.manager.service('ut_array_drbunix.rb')
|
@ext = DRbUNIXService.ext_service('ut_array_drbunix.rb')
|
||||||
@there = @ext.front
|
@there = @ext.front
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -49,7 +49,7 @@ class DRbEx
|
|||||||
end
|
end
|
||||||
|
|
||||||
def do_timeout(n)
|
def do_timeout(n)
|
||||||
timeout(1) do
|
timeout(0.1) do
|
||||||
n.sleep(2)
|
n.sleep(2)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user