Method: GRPC::Spec::Helpers#update_server_args_hash

Defined in:
src/ruby/spec/support/helpers.rb

#update_server_args_hash(server_args) ⇒ Object


96
97
98
99
100
101
102
103
104
# File 'src/ruby/spec/support/helpers.rb', line 96

def update_server_args_hash(server_args)
  so_reuseport_arg = 'grpc.so_reuseport'
  unless server_args[so_reuseport_arg].nil?
    fail 'Unexpected. grpc.so_reuseport already set.'
  end
  # Run tests without so_reuseport to eliminate the chance of
  # cross-talk.
  server_args[so_reuseport_arg] = 0
end