Permalink
Browse files

add multi-call with call_async

  • Loading branch information...
1 parent cabd3f9 commit e6de77da507cb0e0c3c367ff989c305044ddf6b0 @authorNari committed Nov 5, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test_client.rb
View
@@ -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

0 comments on commit e6de77d

Please sign in to comment.