Method: GRPC::Spec::Helpers#new_rpc_server_for_testing
- Defined in:
- src/ruby/spec/support/helpers.rb
permalink #new_rpc_server_for_testing(server_opts = {}) ⇒ Object
Build an RPCServer for use in tests. Adds args that are useful for all tests.
78 79 80 81 82 |
# File 'src/ruby/spec/support/helpers.rb', line 78 def new_rpc_server_for_testing(server_opts = {}) server_opts[:server_args] ||= {} update_server_args_hash(server_opts[:server_args]) RpcServer.new(**server_opts) end |