summaryrefslogtreecommitdiff
path: root/test/drb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-04 12:25:45 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-04 12:25:45 +0000
commit940aa83194eca6a88c82286e04fe216685e3c6ac (patch)
tree8c27591637d92a8c7717c514754bf0ae48fc7027 /test/drb
parent1b27958bfb62041721d010c42ee6670bcdd76341 (diff)
use DRbService.ext_service. reduce sleep
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb')
-rw-r--r--test/drb/test_drbssl.rb12
-rw-r--r--test/drb/test_drbunix.rb15
-rw-r--r--test/drb/ut_drb.rb2
3 files changed, 3 insertions, 26 deletions
diff --git a/test/drb/test_drbssl.rb b/test/drb/test_drbssl.rb
index eb1fa35..cfb3bc3 100644
--- a/test/drb/test_drbssl.rb
+++ b/test/drb/test_drbssl.rb
@@ -48,18 +48,6 @@ class TestDRbSSLCore < 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 TestDRbSSLAry < Test::Unit::TestCase
diff --git a/test/drb/test_drbunix.rb b/test/drb/test_drbunix.rb
index eeaa9c9..e1a17ed 100644
--- a/test/drb/test_drbunix.rb
+++ b/test/drb/test_drbunix.rb
@@ -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
diff --git a/test/drb/ut_drb.rb b/test/drb/ut_drb.rb
index b0d3a5b..93ac1d8 100644
--- a/test/drb/ut_drb.rb
+++ b/test/drb/ut_drb.rb
@@ -49,7 +49,7 @@ class DRbEx
end
def do_timeout(n)
- timeout(1) do
+ timeout(0.1) do
n.sleep(2)
end
end