aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2016-05-23 10:07:54 -0700
committerGravatar murgatroid99 <mlumish@google.com>2016-05-23 10:07:54 -0700
commit74cb8f5e6d7be529769f95790938e770fc2074f5 (patch)
tree96a4a6877c63eefa5100e2ed441691c5e4f10071 /src
parentfb2877d4c8ea9762109d9bb7e1adeddd948af0c8 (diff)
Removed remaining reference to timeout argument from ruby interop client
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ruby/pb/test/client.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ruby/pb/test/client.rb b/src/ruby/pb/test/client.rb
index feedcde7a5..b6695482a2 100755
--- a/src/ruby/pb/test/client.rb
+++ b/src/ruby/pb/test/client.rb
@@ -317,7 +317,8 @@ class NamedTests
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