Skip to content

Keyword arguments arity error in drb tests #8798

@headius

Description

@headius

There's an arity error in the drb tests when running on JRuby 10 (have not tested 9.4):

$ bundle exec ruby -Ilib:test/lib test/drb/test_drb.rb -n test_bug16634
Loaded suite test/drb/test_drb
Started
E
===========================================================================================================================================================================================================================================================================================================================================
Error: test_bug16634(DRbTests::TestBug16634): ArgumentError: wrong number of arguments (given 1, expected 0)
(druby://localhost:51803) /Users/headius/work/drb/test/drb/ut_drb.rb:151:in 'keyword_test1'
(druby://localhost:51803) /Users/headius/work/drb/lib/drb/drb.rb:1713:in 'perform_without_block'
(druby://localhost:51803) /Users/headius/work/drb/lib/drb/drb.rb:1669:in 'perform'
(druby://localhost:51803) /Users/headius/work/drb/lib/drb/drb.rb:1758:in 'block in main_loop'
(druby://localhost:51803) org/jruby/RubyKernel.java:1658:in 'loop'
(druby://localhost:51803) /Users/headius/work/drb/lib/drb/drb.rb:1754:in 'block in main_loop'
test/drb/test_drb.rb:364:in 'test_bug16634'
     361:   end
     362: 
     363:   def test_bug16634
  => 364:     assert_equal(42, @there.keyword_test1(a: 42))
     365:     assert_equal("default", @there.keyword_test2)
     366:     assert_equal(42, @there.keyword_test2(b: 42))
     367:     assert_equal({:a=>42, :b=>42}, @there.keyword_test3(a: 42, b: 42))

I have not investigated this yet but it may be a method generated by drb as a remote binding, and that could be a clue about why it sees this as a mismatched arity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions