mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
raise DRbConnError instead of ArgumentError if too many arguments.
[ruby-dev:41481] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7eec027f06
commit
b54b86d898
4 changed files with 12 additions and 3 deletions
|
@ -135,7 +135,7 @@ module DRbCore
|
|||
|
||||
def test_03
|
||||
assert_equal(8, @there.sum(1, 1, 1, 1, 1, 1, 1, 1))
|
||||
assert_raise(ArgumentError) do
|
||||
assert_raise(DRb::DRbConnError) do
|
||||
@there.sum(1, 1, 1, 1, 1, 1, 1, 1, 1)
|
||||
end
|
||||
assert_raise(DRb::DRbConnError) do
|
||||
|
|
|
@ -283,7 +283,7 @@ class TestDRbLarge < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_04_many_arg
|
||||
assert_raise(ArgumentError) {
|
||||
assert_raise(DRb::DRbConnError) {
|
||||
@there.arg_test(1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue