Class: DebugMessageTestService

Inherits:
Object
  • Object
show all
Includes:
GRPC::GenericService
Defined in:
src/ruby/spec/debug_message_spec.rb

Overview

a test service that checks the cert of its peer

Instance Method Summary collapse

Methods included from GRPC::GenericService

included, underscore

Instance Method Details

#an_rpc_raises_abort(_req, _call) ⇒ Object



25
26
27
28
29
30
# File 'src/ruby/spec/debug_message_spec.rb', line 25

def an_rpc_raises_abort(_req, _call)
  fail GRPC::Aborted.new(
    'aborted',
    {},
    TEST_DEBUG_MESSAGE)
end

#an_rpc_raises_standarderror(_req, _call) ⇒ Object



32
33
34
# File 'src/ruby/spec/debug_message_spec.rb', line 32

def an_rpc_raises_standarderror(_req, _call)
  fail(StandardError, TEST_DEBUG_MESSAGE)
end