Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add multi-call with call_async

  • Loading branch information...
commit e6de77da507cb0e0c3c367ff989c305044ddf6b0 1 parent cabd3f9
@authorNari authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test_client.rb
View
5 test/test_client.rb
@@ -43,6 +43,11 @@ def test_call_async
future = @client.call(:error)
future.value
end
+
+ # multi-call
+ (1..20).map{|i| [@client.call_async(:test, i), i] }.each do |f, i|
+ assert_equal [i], f.value
+ end
end
def test_callback
Please sign in to comment.
Something went wrong with that request. Please try again.