Method: GRPC::Spec::Helpers#new_core_server_for_testing

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

#new_core_server_for_testing(server_args) ⇒ Object

Build an GRPC::Core::Server for use in tests. Adds args that are useful for all tests.

Parameters:

  • server_args (Hash)

90
91
92
93
94
# File 'src/ruby/spec/support/helpers.rb', line 90

def new_core_server_for_testing(server_args)
  server_args.nil? && server_args = {}
  update_server_args_hash(server_args)
  GRPC::Core::Server.new(server_args)
end