Skip to content

Commit

Permalink
Removed remaining reference to timeout argument from ruby interop client
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed May 23, 2016
1 parent fb2877d commit 74cb8f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ruby/pb/test/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ def ping_pong
def timeout_on_sleeping_server
msg_sizes = [[27_182, 31_415]]
ppp = PingPongPlayer.new(msg_sizes)
resps = @stub.full_duplex_call(ppp.each_item, timeout: 0.001)
deadline = GRPC::Core::TimeConsts::from_relative_time(0.001)
resps = @stub.full_duplex_call(ppp.each_item, deadline: deadline)
resps.each { |r| ppp.queue.push(r) }
fail 'Should have raised GRPC::BadStatus(DEADLINE_EXCEEDED)'
rescue GRPC::BadStatus => e
Expand Down

0 comments on commit 74cb8f5

Please sign in to comment.