diff options
Diffstat (limited to 'src/ruby/spec/generic')
-rw-r--r-- | src/ruby/spec/generic/rpc_server_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ruby/spec/generic/rpc_server_spec.rb b/src/ruby/spec/generic/rpc_server_spec.rb index 4258d59851..e0646f4599 100644 --- a/src/ruby/spec/generic/rpc_server_spec.rb +++ b/src/ruby/spec/generic/rpc_server_spec.rb @@ -123,13 +123,13 @@ class CheckCallAfterFinishedService attr_reader :server_side_call def an_rpc(req, call) - fail 'shouldnt reuse service' unless @call.nil? + fail 'shouldnt reuse service' unless @server_side_call.nil? @server_side_call = call req end def a_client_streaming_rpc(call) - fail 'shouldnt reuse service' unless @call.nil? + fail 'shouldnt reuse service' unless @server_side_call.nil? @server_side_call = call # iterate through requests so call can complete call.each_remote_read.each { |r| p r } @@ -137,13 +137,13 @@ class CheckCallAfterFinishedService end def a_server_streaming_rpc(_, call) - fail 'shouldnt reuse service' unless @call.nil? + fail 'shouldnt reuse service' unless @server_side_call.nil? @server_side_call = call [EchoMsg.new, EchoMsg.new] end def a_bidi_rpc(requests, call) - fail 'shouldnt reuse service' unless @call.nil? + fail 'shouldnt reuse service' unless @server_side_call.nil? @server_side_call = call requests.each { |r| p r } [EchoMsg.new, EchoMsg.new] |