src/ruby/pb/test/client.rb
# Send probing message for compressed request on the server, to see
# if it's implemented.
Send probing message for compressed request on the server, to see
if it's implemented.
Send probing message for compressed request on the server to see if it ' s implemented .
def send_probe_for_compressed_request_support(&send_probe)
    bad_status_occured = false
    begin
      send_probe.call
    rescue GRPC::BadStatus => e
      if e.code == GRPC::Core::StatusCodes::INVALID_ARGUMENT
        bad_status_occured = true
      else
        fail AssertionError, "Bad status received but code is #{e.code}"
      end
    rescue Exception => e
      fail AssertionError, "Expected BadStatus. Received: #{e.inspect}"
    end
    assert('CompressedRequest probe failed') do
      bad_status_occured
    end
  end
def send_probe_for_compressed_request_support ( & send_probe ) bad_status_occured = false begin send_probe . call rescue GRPC :: BadStatus => e if e . code == GRPC :: Core :: StatusCodes :: INVALID_ARGUMENT bad_status_occured = true else fail AssertionError , "Bad status received but code is #{e.code}" end rescue Exception => e fail AssertionError , "Expected BadStatus. Received: #{e.inspect}" end assert ( 'CompressedRequest probe failed' ) do bad_status_occured end end
Send probing message for compressed request on the server, to see
if it's implemented.
Send probing message for compressed request on the server to see if it ' s implemented .
send_probe
<not_specific>